From ca2faa81fe166a0391b4724acf5cee1d359fe266 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tapaj=C3=B3s?= Date: Sat, 31 Oct 2009 10:49:26 -0200 Subject: [PATCH] Using |property_name, property_value| instead of |key, value|. --- lib/couchrest/mixins/attribute_protection.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/couchrest/mixins/attribute_protection.rb b/lib/couchrest/mixins/attribute_protection.rb index 4eb04a0..b2efc53 100644 --- a/lib/couchrest/mixins/attribute_protection.rb +++ b/lib/couchrest/mixins/attribute_protection.rb @@ -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 || {}