Flowdock
method

reset_attribute!

Importance_1
Ruby on Rails latest stable (v4.2.7) - 1 note - Class: ActiveModel::Dirty
reset_attribute!(attr) private

Handle reset_*! for method_missing.

Show source
Register or log in to add new notes.
March 22, 2018
0 thanks

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.