aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2010-01-21 00:25:18 +0530
committerPratik Naik <pratiknaik@gmail.com>2010-01-21 00:40:38 +0530
commit8bdcb6f072d503686dc56162c107d72762a67f7d (patch)
tree763dabe291b30cafe64fe400fbe0cc32bdc3783b
parentc8cba7db76d7128dfd8fd03de0e085c81bbed92a (diff)
downloadrails-8bdcb6f072d503686dc56162c107d72762a67f7d.tar.gz
rails-8bdcb6f072d503686dc56162c107d72762a67f7d.tar.bz2
rails-8bdcb6f072d503686dc56162c107d72762a67f7d.zip
Always use table.* in the finder query unless specified
-rw-r--r--activerecord/lib/active_record/relation/query_methods.rb2
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