Method: ActiveModel::AttributeMutationTracker#any_changes?

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

#any_changes?Boolean

Returns:

  • (Boolean)


40
41
42
# File 'activemodel/lib/active_model/attribute_mutation_tracker.rb', line 40

def any_changes?
  attr_names.any? { |attr| changed?(attr) }
end