1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove node parameter to join_constraints

I don't think we actually need this parameter anymore.  Nobody seems to
be using it.
This commit is contained in:
Aaron Patterson 2017-03-03 09:56:45 -08:00
parent fd8da71118
commit 6a96285248
No known key found for this signature in database
GPG key ID: 953170BCB4FFAFC6
2 changed files with 3 additions and 3 deletions

View file

@ -171,7 +171,7 @@ module ActiveRecord
chain = child.reflection.chain chain = child.reflection.chain
foreign_table = parent.table foreign_table = parent.table
foreign_klass = parent.base_klass foreign_klass = parent.base_klass
child.join_constraints(foreign_table, foreign_klass, child, join_type, tables, chain) child.join_constraints(foreign_table, foreign_klass, join_type, tables, chain)
end end
def make_outer_joins(parent, child) def make_outer_joins(parent, child)

View file

@ -23,7 +23,7 @@ module ActiveRecord
JoinInformation = Struct.new :joins, :binds JoinInformation = Struct.new :joins, :binds
def join_constraints(foreign_table, foreign_klass, node, join_type, tables, chain) def join_constraints(foreign_table, foreign_klass, join_type, tables, chain)
joins = [] joins = []
binds = [] binds = []
tables = tables.reverse tables = tables.reverse
@ -46,7 +46,7 @@ module ActiveRecord
item item
else else
ActiveRecord::Relation.create(klass, table, predicate_builder) ActiveRecord::Relation.create(klass, table, predicate_builder)
.instance_exec(node, &item) .instance_exec(&item)
end end
end end