Method: Dynamoid::Persistence#increment!
- Defined in:
- lib/dynamoid/persistence.rb
#increment!(attribute, by = 1) ⇒ Object
Wrapper around increment that saves the record. Returns true if the record could be saved.
229 230 231 232 |
# File 'lib/dynamoid/persistence.rb', line 229 def increment!(attribute, by = 1) increment(attribute, by) save end |