Permalink
Browse files

Always use table.* in the finder query unless specified

  • Loading branch information...
lifo committed Jan 20, 2010
1 parent c8cba7d commit 8bdcb6f072d503686dc56162c107d72762a67f7d
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/relation/query_methods.rb
@@ -145,7 +145,7 @@ def build_arel
@implicit_readonly = false
arel = arel.project(s) if s.present?
end
- elsif joins.present?
+ else
arel = arel.project(@klass.quoted_table_name + '.*')
end

0 comments on commit 8bdcb6f

Please sign in to comment.