aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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