Using |property_name, property_value| instead of |key, value|.

This commit is contained in:
Tapajós 2009-10-31 10:49:26 -02:00
parent 1315d65681
commit ca2faa81fe

View file

@ -46,8 +46,8 @@ module CouchRest
protected_names = properties_to_remove_from_mass_assignment.map { |prop| prop.name }
return attributes if protected_names.empty?
attributes.reject! do |key, value|
protected_names.include?(key.to_s)
attributes.reject! do |property_name, property_value|
protected_names.include?(property_name.to_s)
end
attributes || {}