aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-07-25 18:55:03 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-07-25 18:55:03 +0900
commitea37a5709b526c5e58ef5b96a27c62cf222a52c4 (patch)
treecf6bf3a7e4e986c7e2ed706be894bbe95977ca8b /activerecord/lib/active_record/relation
parentd9ca57ab0b5c20af11f4b819e75306c668b203f7 (diff)
downloadrails-ea37a5709b526c5e58ef5b96a27c62cf222a52c4.tar.gz
rails-ea37a5709b526c5e58ef5b96a27c62cf222a52c4.tar.bz2
rails-ea37a5709b526c5e58ef5b96a27c62cf222a52c4.zip
Remove useless `JoinInformation`
Since 213796f removed `binds`, `JoinInformation` only contain `joins`. So it is enough to return `joins` simply.
Diffstat (limited to 'activerecord/lib/active_record/relation')
-rw-r--r--activerecord/lib/active_record/relation/query_methods.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb
index 812c8e7e3f..a51cf4319e 100644
--- a/activerecord/lib/active_record/relation/query_methods.rb
+++ b/activerecord/lib/active_record/relation/query_methods.rb
@@ -1014,11 +1014,8 @@ module ActiveRecord
klass, table, association_joins, join_list
)
- join_infos = join_dependency.join_constraints stashed_association_joins, join_type
-
- join_infos.each do |info|
- info.joins.each { |join| manager.from(join) }
- end
+ joins = join_dependency.join_constraints(stashed_association_joins, join_type)
+ joins.each { |join| manager.from(join) }
manager.join_sources.concat(join_list)