Added attributes= to casted model and extended doc
This commit is contained in:
parent
e48a6c8866
commit
704d0a09bd
4 changed files with 53 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue