fix bad variable name on #update_attributes

This commit is contained in:
Matt Lyon 2008-10-21 11:11:35 -07:00
parent ebfda803c8
commit 0c50435b68

View file

@ -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)