aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation/merger.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-10-07 17:29:45 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-10-08 22:12:42 +0900
commit8ad8bbaef8c4f521f292765a02ddb91e48160366 (patch)
treec74e15683649661d3340c4f0a15c148ab8b9c6c5 /activerecord/lib/active_record/relation/merger.rb
parente695086248290b186bd72134583a331d40645427 (diff)
downloadrails-8ad8bbaef8c4f521f292765a02ddb91e48160366.tar.gz
rails-8ad8bbaef8c4f521f292765a02ddb91e48160366.tar.bz2
rails-8ad8bbaef8c4f521f292765a02ddb91e48160366.zip
Decouple building `AliasTracker` from `JoinDependency`
This is preparation to respect parent relation's alias tracking for fixing #30681.
Diffstat (limited to 'activerecord/lib/active_record/relation/merger.rb')
-rw-r--r--activerecord/lib/active_record/relation/merger.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/merger.rb b/activerecord/lib/active_record/relation/merger.rb
index 03824ffff9..ebc72d28fd 100644
--- a/activerecord/lib/active_record/relation/merger.rb
+++ b/activerecord/lib/active_record/relation/merger.rb
@@ -122,7 +122,7 @@ module ActiveRecord
end
join_dependency = ActiveRecord::Associations::JoinDependency.new(
- other.klass, other.table, joins_dependency, []
+ other.klass, other.table, joins_dependency, other.alias_tracker
)
relation.joins! rest