method
reset_attribute!
v4.2.1 -
Show latest stable
- Class:
ActiveModel::Dirty
reset_attribute!(attr)private
Handle reset_*! for method_missing.
1Note
Each attribute has a `reset_<attribute>!` method on it as well.
So if the attribute is +name+ you can call +reset_name!+ on the object to reset the dirty changes.