fix bad variable name on #update_attributes
This commit is contained in:
parent
ebfda803c8
commit
0c50435b68
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue