lib/mongo_mapper/plugins/protected.rb in mongo_mapper-unstable-2010.2.19 vs lib/mongo_mapper/plugins/protected.rb in mongo_mapper-unstable-2010.2.22
- old
+ new
@@ -35,10 +35,10 @@
end
protected
def filter_protected_attrs(attrs)
return attrs if protected_attributes.blank?
- attrs.dup.delete_if { |key, val| protected_attributes.include?(key) }
+ attrs.dup.delete_if { |key, val| protected_attributes.include?(key.to_sym) }
end
end
end
end
end