method

changed?

Importance_0
v6.1.7.7 - Show latest stable - 0 notes - Class: AttributeMutationTracker
changed?(attr_name, from: OPTION_NOT_GIVEN, to: OPTION_NOT_GIVEN) 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 44
    def changed?(attr_name, from: OPTION_NOT_GIVEN, to: OPTION_NOT_GIVEN)
      attribute_changed?(attr_name) &&
        (OPTION_NOT_GIVEN == from || original_value(attr_name) == from) &&
        (OPTION_NOT_GIVEN == to || fetch_value(attr_name) == to)
    end
Register or log in to add new notes.