Always use table.* in the finder query unless specified

This commit is contained in:
Pratik Naik
2010-01-21 00:25:18 +05:30
parent c8cba7db76
commit 8bdcb6f072

View File

@@ -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