Method: Dynamoid::Persistence#update_attribute
- Defined in:
- lib/dynamoid/persistence.rb
#update_attribute(attribute, value) ⇒ Dynamoid::Document
Update a single attribute, saving the object afterwards.
Returns true if saving is successful and false otherwise.
user.update_attribute(:last_name, 'Tylor')
Validation is skipped.
Raises a Dynamoid::Errors::UnknownAttribute exception if any of the attributes is not on the model
720 721 722 |
# File 'lib/dynamoid/persistence.rb', line 720 def update_attribute(attribute, value) # final implementation is in the Dynamoid::Validation module end |