Commit e306c101ff63bb68a7df7ff0388e12d1db904fb3
1 parent
2360335a
Exists in
master
and in
2 other branches
Use else [skip ci]
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/searchkick.rb
@@ -309,7 +309,7 @@ module Searchkick | @@ -309,7 +309,7 @@ module Searchkick | ||
309 | def self.relation?(klass) | 309 | def self.relation?(klass) |
310 | if klass.respond_to?(:current_scope) | 310 | if klass.respond_to?(:current_scope) |
311 | !klass.current_scope.nil? | 311 | !klass.current_scope.nil? |
312 | - elsif defined?(Mongoid::Threaded) | 312 | + else |
313 | !Mongoid::Threaded.current_scope(klass).nil? | 313 | !Mongoid::Threaded.current_scope(klass).nil? |
314 | end | 314 | end |
315 | end | 315 | end |