method

changed_values

Importance_0
v5.2.3 - Show latest stable - 0 notes - Class: AttributeMutationTracker
changed_values() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activemodel/lib/active_model/attribute_mutation_tracker.rb, line 18
    def changed_values
      attr_names.each_with_object({}.with_indifferent_access) do |attr_name, result|
        if changed?(attr_name)
          result[attr_name] = attributes[attr_name].original_value
        end
      end
    end
Register or log in to add new notes.