ActiveRecord
ActiveRecord::Associations
activerecord/lib/active_record/associations/belongs_to_polymorphic_association.rb
View on GitHub