method

changes

Importance_0
v5.2.3 - Show latest stable - 0 notes - Class: AttributeMutationTracker
changes() 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 26
    def changes
      attr_names.each_with_object({}.with_indifferent_access) do |attr_name, result|
        change = change_to_attribute(attr_name)
        if change
          result.merge!(attr_name => change)
        end
      end
    end
Register or log in to add new notes.