Method: Mongoid::Contextual::Memory#update
- Defined in:
- lib/mongoid/contextual/memory.rb
#update(attributes = nil) ⇒ nil | false
Update the first matching document atomically.
360 361 362 |
# File 'lib/mongoid/contextual/memory.rb', line 360 def update(attributes = nil) update_documents(attributes, [ first ]) end |