method
decrement!
v5.0.0.1 -
Show latest stable
- Class:
ActiveRecord::Persistence
decrement!(attribute, by = 1)public
Wrapper around #decrement that saves the record. This method differs from its non-bang version in the sense that it passes through the attribute setter. Saving is not subjected to validation checks. Returns true if the record could be saved.