method
association_class
v2.3.8 -
Show latest stable
-
0 notes -
Class: ActiveRecord::Associations::BelongsToPolymorphicAssociation
association_class()
private
Hide source
# File activerecord/lib/active_record/associations/belongs_to_polymorphic_association.rb, line 72 def association_class @owner[@reflection.options[:foreign_type]] ? @owner[@reflection.options[:foreign_type]].constantize : nil end