method
target_changed?
v6.1.7.7 -
Show latest stable
- Class:
ActiveRecord::Associations::BelongsToAssociation
target_changed?()public
No documentation available.
# File activerecord/lib/active_record/associations/belongs_to_association.rb, line 70
def target_changed?
owner.saved_change_to_attribute?(reflection.foreign_key)
end