increment!(attribute, by = 1)public
Wrapper around increment 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.
# File activerecord/lib/active_record/persistence.rb, line 160 def increment!(attribute, by = 1) increment(attribute, by).update_attribute(attribute, self[attribute]) end