Merge branch 'master' of git://github.com/mattly/couchrest into mattly/master

This commit is contained in:
Chris Anderson 2008-10-21 16:46:34 -07:00
commit 8f09303b75

View file

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