Skip to content

Commit

Permalink
Using |property_name, property_value| instead of |key, value|.
Browse files Browse the repository at this point in the history
  • Loading branch information
tapajos committed Oct 31, 2009
1 parent 1315d65 commit ca2faa8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/couchrest/mixins/attribute_protection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ def remove_protected_attributes(attributes)
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 || {}
Expand Down

0 comments on commit ca2faa8

Please sign in to comment.