Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

This reverts commit 0785008.

Reason: MySQL tests are broken with this change because STI information
seems to be lost. We will apply a fix only on master for this.
  • Loading branch information...
commit 1660f53dabb6eee71f64b0f552ed120880a2f8ea 1 parent 54f836e
@rafaelfranca rafaelfranca authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/relation/finder_methods.rb
View
2  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(join_dependency.columns)
+ relation = except(:includes, :eager_load, :preload, :select).select(join_dependency.columns + select_values)
apply_join_dependency(relation, join_dependency)
end
Please sign in to comment.
Something went wrong with that request. Please try again.