Skip to content
Browse files

rm JoinHelper from JoinAssociation

  • Loading branch information...
1 parent 71250a5 commit 6a2b43dccdef817d263c9e578866f151d62fe59c @tenderlove tenderlove committed
View
4 activerecord/lib/active_record/associations/join_dependency/join_association.rb
@@ -4,8 +4,6 @@ module ActiveRecord
module Associations
class JoinDependency # :nodoc:
class JoinAssociation < JoinPart # :nodoc:
- include JoinHelper
-
# The reflection of the association represented
attr_reader :reflection
@@ -83,7 +81,7 @@ def join_constraints(parent, tables)
constraint = constraint.and rel.arel.constraints
end
- joins << join(table, constraint)
+ joins << table.create_join(table, table.create_on(constraint), join_type)
# The current table in this iteration becomes the foreign table in the next
foreign_table, foreign_klass = table, klass

0 comments on commit 6a2b43d

Please sign in to comment.
Something went wrong with that request. Please try again.