lib/couchrest/model/casted_array.rb in couchrest_model-2.0.1 vs lib/couchrest/model/casted_array.rb in couchrest_model-2.0.3

- old
+ new

@@ -70,9 +70,13 @@ obj = casted_by_property.build(*args) self.push(obj) obj end + def as_couch_json + map{ |v| (v.respond_to?(:as_couch_json) ? v.as_couch_json : v)} + end + protected def instantiate_and_cast(obj, change = true) property = casted_by_property couchrest_parent_will_change! if change && use_dirty?