diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2010-01-21 00:25:18 +0530 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2010-01-21 00:40:38 +0530 |
commit | 8bdcb6f072d503686dc56162c107d72762a67f7d (patch) | |
tree | 763dabe291b30cafe64fe400fbe0cc32bdc3783b /activerecord/lib/active_record/relation/query_methods.rb | |
parent | c8cba7db76d7128dfd8fd03de0e085c81bbed92a (diff) | |
download | rails-8bdcb6f072d503686dc56162c107d72762a67f7d.tar.gz rails-8bdcb6f072d503686dc56162c107d72762a67f7d.tar.bz2 rails-8bdcb6f072d503686dc56162c107d72762a67f7d.zip |
Always use table.* in the finder query unless specified
Diffstat (limited to 'activerecord/lib/active_record/relation/query_methods.rb')
-rw-r--r-- | activerecord/lib/active_record/relation/query_methods.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb index bad6fd716b..0cfe629c07 100644 --- a/activerecord/lib/active_record/relation/query_methods.rb +++ b/activerecord/lib/active_record/relation/query_methods.rb @@ -145,7 +145,7 @@ module ActiveRecord @implicit_readonly = false arel = arel.project(s) if s.present? end - elsif joins.present? + else arel = arel.project(@klass.quoted_table_name + '.*') end |