From f3d69c005291591220875efc48f82ea3909c6625 Mon Sep 17 00:00:00 2001 From: Andrei Shaidurov Date: Mon, 6 Mar 2017 17:28:16 +0100 Subject: Allow unscoping of left_outer_joins --- activerecord/lib/active_record/relation/query_methods.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb index 4ee413c805..fe671a59f9 100644 --- a/activerecord/lib/active_record/relation/query_methods.rb +++ b/activerecord/lib/active_record/relation/query_methods.rb @@ -348,7 +348,7 @@ module ActiveRecord VALID_UNSCOPING_VALUES = Set.new([:where, :select, :group, :order, :lock, :limit, :offset, :joins, :includes, :from, - :readonly, :having]) + :readonly, :having, :left_outer_joins]) # Removes an unwanted relation that is already defined on a chain of relations. # This is useful when passing around chains of relations and would like to -- cgit v1.2.3