# File lib/couchrest/model/associations.rb, line 248 def instantiate_and_cast(obj, change = true) couchrest_parent_will_change! if change && use_dirty? obj.casted_by = casted_by if obj.respond_to?(:casted_by) obj.casted_by_property = casted_by_property if obj.respond_to?(:casted_by_property) obj end