method
target_changed?
v5.2.3 -
Show latest stable
- Class:
ActiveRecord::Associations::BelongsToPolymorphicAssociation
target_changed?()public
No documentation available.
# File activerecord/lib/active_record/associations/belongs_to_polymorphic_association.rb, line 12
def target_changed?
super || owner.saved_change_to_attribute?(reflection.foreign_type)
end