diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-10-13 16:42:49 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-10-13 16:42:49 -0700 |
commit | 5e4031ef3d2c1b60bab1f8733ae995fa1305ec22 (patch) | |
tree | 1a45364c411a713b32d32b8c106b9e4ca1888452 /activerecord | |
parent | 485eec407ae7f9791d120380d637bd43d9177851 (diff) | |
download | rails-5e4031ef3d2c1b60bab1f8733ae995fa1305ec22.tar.gz rails-5e4031ef3d2c1b60bab1f8733ae995fa1305ec22.tar.bz2 rails-5e4031ef3d2c1b60bab1f8733ae995fa1305ec22.zip |
JoinDependency will take care of making things unique
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/relation/finder_methods.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/finder_methods.rb b/activerecord/lib/active_record/relation/finder_methods.rb index d5eb1edf77..6ac803afc2 100644 --- a/activerecord/lib/active_record/relation/finder_methods.rb +++ b/activerecord/lib/active_record/relation/finder_methods.rb @@ -252,7 +252,7 @@ module ActiveRecord end def construct_join_dependency(joins = []) - including = (eager_load_values + includes_values).uniq + including = eager_load_values + includes_values ActiveRecord::Associations::JoinDependency.new(@klass, including, joins) end |