Method: CouchbaseOrm::Persistence#update
- Defined in:
- lib/couchbase-orm/persistence.rb
#update(hash) ⇒ Object Also known as: update_attributes
Updates the attributes of the model from the passed-in hash and saves the record. If the object is invalid, the saving will fail and false will be returned.
163 164 165 166 |
# File 'lib/couchbase-orm/persistence.rb', line 163 def update(hash) assign_attributes(hash) save end |