lib/mongomodel/concerns/attributes.rb in mongomodel-0.4.9 vs lib/mongomodel/concerns/attributes.rb in mongomodel-0.5.0
- old
+ new
@@ -61,9 +61,14 @@
docs.concat map.values
end
docs
end
+
+ protected
+ def sanitize_for_mass_assignment(attrs, options={})
+ attrs
+ end
module ClassMethods
def from_mongo(hash)
if hash
doc = class_for_type(hash['_type']).new