# File lib/polyamorous/activerecord_4.2_ruby_1.9/join_association.rb, line 13 def initialize_with_polymorphism(reflection, children, polymorphic_class = nil, join_type = Arel::Nodes::InnerJoin) @join_type = join_type if polymorphic_class && ::ActiveRecord::Base > polymorphic_class swapping_reflection_klass(reflection, polymorphic_class) do |reflection| initialize_without_polymorphism(reflection, children) self.reflection.options[:polymorphic] = true end else initialize_without_polymorphism(reflection, children) end end