Permalink
Browse files

Don't remove the select values to add they back again

  • Loading branch information...
1 parent 1658793 commit 0785008a64f4af8d09379683303d49d160cd444d @rafaelfranca rafaelfranca committed Oct 15, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/relation/finder_methods.rb
@@ -222,7 +222,7 @@ def construct_relation_for_association_calculations
end
def construct_relation_for_association_find(join_dependency)
- relation = except(:includes, :eager_load, :preload, :select).select(join_dependency.columns + select_values)
+ relation = except(:includes, :eager_load, :preload).select(join_dependency.columns)
apply_join_dependency(relation, join_dependency)
end

0 comments on commit 0785008

Please sign in to comment.