Method: ActiveModel::AttributeMutationTracker#change_to_attribute

Defined in:
activemodel/lib/active_model/attribute_mutation_tracker.rb

#change_to_attribute(attr_name) ⇒ Object



34
35
36
37
38
# File 'activemodel/lib/active_model/attribute_mutation_tracker.rb', line 34

def change_to_attribute(attr_name)
  if changed?(attr_name)
    [original_value(attr_name), fetch_value(attr_name)]
  end
end