Method: ActiveRecord::Associations::Association#klass

Defined in:
lib/active_record/associations/association.rb

#klassObject

Returns the class of the target. belongs_to polymorphic overrides this to look at the polymorphic_type field on the owner.



148
149
150
# File 'lib/active_record/associations/association.rb', line 148

def klass
  reflection.klass
end