module ActiveModel::Dirty

def restore_attributes(attr_names = changed)

Restore all previous data of the provided attributes.
def restore_attributes(attr_names = changed)
  attr_names.each { |attr_name| restore_attribute!(attr_name) }
end