method
different_target?
v5.0.0.1 -
Show latest stable
- Class:
ActiveRecord::Associations::BelongsToPolymorphicAssociation
different_target?(record)private
No documentation available.
# File activerecord/lib/active_record/associations/belongs_to_polymorphic_association.rb, line 22
def different_target?(record)
super || record.class != klass
end