# File lib/couchrest/model/casted_array.rb, line 32 def []= index, obj value = instantiate_and_cast(obj, false) couchrest_parent_will_change! if use_dirty? && value != self[index] super(index, value) end