Added attributes= to casted model and extended doc

This commit is contained in:
Peter Gumeson 2009-05-27 13:24:25 -07:00
parent e48a6c8866
commit 704d0a09bd
4 changed files with 53 additions and 0 deletions

View file

@ -113,6 +113,7 @@ module CouchRest
self.send("#{k}=",v)
end
end
alias :attributes= :update_attributes_without_saving
# Takes a hash as argument, and applies the values by using writer methods
# for each key. Raises a NoMethodError if the corresponding methods are