Using |property_name, property_value| instead of |key, value|.
This commit is contained in:
parent
1315d65681
commit
ca2faa81fe
|
@ -46,8 +46,8 @@ module CouchRest
|
||||||
protected_names = properties_to_remove_from_mass_assignment.map { |prop| prop.name }
|
protected_names = properties_to_remove_from_mass_assignment.map { |prop| prop.name }
|
||||||
return attributes if protected_names.empty?
|
return attributes if protected_names.empty?
|
||||||
|
|
||||||
attributes.reject! do |key, value|
|
attributes.reject! do |property_name, property_value|
|
||||||
protected_names.include?(key.to_s)
|
protected_names.include?(property_name.to_s)
|
||||||
end
|
end
|
||||||
|
|
||||||
attributes || {}
|
attributes || {}
|
||||||
|
|
Loading…
Reference in a new issue