Merge branch 'master' of git://github.com/mattly/couchrest into mattly/master
This commit is contained in:
commit
8f09303b75
|
@ -431,7 +431,7 @@ module CouchRest
|
||||||
# missing. In case of error, no attributes are changed.
|
# missing. In case of error, no attributes are changed.
|
||||||
def update_attributes hash
|
def update_attributes hash
|
||||||
hash.each do |k, v|
|
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
|
end
|
||||||
hash.each do |k, v|
|
hash.each do |k, v|
|
||||||
self.send("#{k}=",v)
|
self.send("#{k}=",v)
|
||||||
|
|
Loading…
Reference in a new issue