diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2019-03-18 01:48:20 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2019-03-18 01:48:20 +0900 |
commit | 73d5e216086a9a3b0fd0efa6fab6f73bba3fa32e (patch) | |
tree | ff9cf3fdbd336b1f6660433922fd82fa7b076ae7 /activerecord/lib/active_record | |
parent | b707a448a34345cd0a6609b8bd57874f1325a96c (diff) | |
download | rails-73d5e216086a9a3b0fd0efa6fab6f73bba3fa32e.tar.gz rails-73d5e216086a9a3b0fd0efa6fab6f73bba3fa32e.tar.bz2 rails-73d5e216086a9a3b0fd0efa6fab6f73bba3fa32e.zip |
Add test case for unscoping `:optimizer_hints`
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/relation/query_methods.rb | 2 |
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 2603fac8b2..05ea0850d3 100644 --- a/activerecord/lib/active_record/relation/query_methods.rb +++ b/activerecord/lib/active_record/relation/query_methods.rb @@ -350,7 +350,7 @@ module ActiveRecord VALID_UNSCOPING_VALUES = Set.new([:where, :select, :group, :order, :lock, :limit, :offset, :joins, :left_outer_joins, - :includes, :from, :readonly, :having]) + :includes, :from, :readonly, :having, :optimizer_hints]) # 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 |