instance method
saved_changes?
Ruby on Rails 8.0.4
Since v5.2.8.1Signature
saved_changes?()
Did the last call to save have any changes to change?
Source
# File activerecord/lib/active_record/attribute_methods/dirty.rb, line 113
def saved_changes?
mutations_before_last_save.any_changes?
end
Defined in activerecord/lib/active_record/attribute_methods/dirty.rb line 113
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::AttributeMethods::Dirty