method

reset_attribute!

reset_attribute!(attr)
private

Handle reset_*! for method_missing.

1Note

Each attribute has a `reset_<attribute>!` method on it as well.

joshuapinter ยท Mar 22, 2018

So if the attribute is +name+ you can call +reset_name!+ on the object to reset the dirty changes.