method
derive_class_name
derive_class_name()
private
Hide source
# File activerecord/lib/active_record/reflection.rb, line 217 def derive_class_name # get the class_name of the belongs_to association of the through reflection if through_reflection options[:source_type] || source_reflection.class_name else class_name = name.to_s.camelize class_name = class_name.singularize if [ :has_many, :has_and_belongs_to_many ].include?(macro) class_name end end