diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-10-15 17:58:03 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-10-15 18:02:25 -0300 |
commit | ab9475bccf1107919a255be3f5f7363f189e3621 (patch) | |
tree | a6a4ab66d54e39a8653fd1b1b9b6a235590b00c2 /activerecord/lib/active_record/relation/finder_methods.rb | |
parent | 9f80937e82bbb592023ac3186826b59730370902 (diff) | |
download | rails-ab9475bccf1107919a255be3f5f7363f189e3621.tar.gz rails-ab9475bccf1107919a255be3f5f7363f189e3621.tar.bz2 rails-ab9475bccf1107919a255be3f5f7363f189e3621.zip |
Don't remove the select values to add they back again
Conflicts:
activerecord/lib/active_record/relation/finder_methods.rb
Diffstat (limited to 'activerecord/lib/active_record/relation/finder_methods.rb')
-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 8583286de5..fe75a32545 100644 --- a/activerecord/lib/active_record/relation/finder_methods.rb +++ b/activerecord/lib/active_record/relation/finder_methods.rb @@ -261,7 +261,7 @@ module ActiveRecord end def construct_relation_for_association_find(join_dependency) - relation = except(:select).select(join_dependency.columns + select_values) + relation = select(join_dependency.columns) apply_join_dependency(relation, join_dependency) end |