Merge branch 'master' of git://github.com/mattly/couchrest into mattly/master
This commit is contained in:
commit
8f09303b75
1 changed files with 1 additions and 1 deletions
|
@ -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