diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-24 13:40:23 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-24 13:55:55 -0800 |
commit | cdf6cf01cb47bdcbc1e011c8f5f72b161f12bf9c (patch) | |
tree | 799f62fd5996189bc16dda689ecdc4d82f7c8496 /activerecord/lib/active_record/relation | |
parent | afe51afcc6b7c0245fddbd879d369818b54e460a (diff) | |
download | rails-cdf6cf01cb47bdcbc1e011c8f5f72b161f12bf9c.tar.gz rails-cdf6cf01cb47bdcbc1e011c8f5f72b161f12bf9c.tar.bz2 rails-cdf6cf01cb47bdcbc1e011c8f5f72b161f12bf9c.zip |
use ARel rather than generate SQL strings
Diffstat (limited to 'activerecord/lib/active_record/relation')
-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 74ec83091c..23ae0b4325 100644 --- a/activerecord/lib/active_record/relation/finder_methods.rb +++ b/activerecord/lib/active_record/relation/finder_methods.rb @@ -202,7 +202,7 @@ module ActiveRecord end def construct_relation_for_association_find(join_dependency) - relation = except(:includes, :eager_load, :preload, :select).select(join_dependency.columns(connection)) + relation = except(:includes, :eager_load, :preload, :select).select(join_dependency.columns) apply_join_dependency(relation, join_dependency) end |