method
toggle!
v3.2.13 -
Show latest stable
- Class:
ActiveRecord::Persistence
toggle!(attribute)public
Wrapper around toggle that saves the record. This method differs from its non-bang version in that it passes through the attribute setter. Saving is not subjected to validation checks. Returns true if the record could be saved.