From 0c50435b68a3595ce2bbc636fe968b44e011a01b Mon Sep 17 00:00:00 2001 From: Matt Lyon Date: Tue, 21 Oct 2008 11:11:35 -0700 Subject: [PATCH] fix bad variable name on #update_attributes --- lib/couchrest/core/model.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/couchrest/core/model.rb b/lib/couchrest/core/model.rb index dbc92b2..463eed5 100644 --- a/lib/couchrest/core/model.rb +++ b/lib/couchrest/core/model.rb @@ -431,7 +431,7 @@ module CouchRest # missing. In case of error, no attributes are changed. def update_attributes hash hash.each do |k, v| - raise NoMethodError, "#{k}= method not available, use key_accessor or key_writer :#{key}" unless self.respond_to?("#{k}=") + raise NoMethodError, "#{k}= method not available, use key_accessor or key_writer :#{k}" unless self.respond_to?("#{k}=") end hash.each do |k, v| self.send("#{k}=",v)