method
association_class
v3.0.0 -
Show latest stable
- Class:
ActiveRecord::Associations::BelongsToPolymorphicAssociation
association_class()private
No documentation available.
# File activerecord/lib/active_record/associations/belongs_to_polymorphic_association.rb, line 73
def association_class
@owner[@reflection.options[:foreign_type]] ? @owner[@reflection.options[:foreign_type]].constantize : nil
end