method

changed_values

rails latest stable - Class: ActiveRecord::AttributeMutationTracker

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v5.1.7) is shown here.

changed_values()
public

No documentation available.

# File activerecord/lib/active_record/attribute_mutation_tracker.rb, line 15
    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