Permalink
Browse files

JoinDependency will take care of making things unique

  • Loading branch information...
1 parent 485eec4 commit 5e4031ef3d2c1b60bab1f8733ae995fa1305ec22 @tenderlove tenderlove committed Oct 13, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/relation/finder_methods.rb
@@ -252,7 +252,7 @@ def find_with_associations
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

0 comments on commit 5e4031e

Please sign in to comment.