Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Always use table.* in the finder query unless specified

  • Loading branch information...
commit 8bdcb6f072d503686dc56162c107d72762a67f7d 1 parent c8cba7d
@lifo lifo authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/relation/query_methods.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.