aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/relation/query_methods.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb
index a98b650524..145ae6ca97 100644
--- a/activerecord/lib/active_record/relation/query_methods.rb
+++ b/activerecord/lib/active_record/relation/query_methods.rb
@@ -273,8 +273,6 @@ module ActiveRecord
if manager.froms.length > 0 && join_ast
join_ast.left = manager.froms.first
manager.from join_ast
- elsif manager.froms.length == 0 && join_ast
- manager.from(join_ast)
else
manager
end