Method: ActiveModel::Dirty#restore_attributes
- Defined in:
- activemodel/lib/active_model/dirty.rb
#restore_attributes(attr_names = changed) ⇒ Object
Restore all previous data of the provided attributes.
320 321 322 |
# File 'activemodel/lib/active_model/dirty.rb', line 320 def restore_attributes(attr_names = changed) attr_names.each { |attr_name| restore_attribute!(attr_name) } end |