From fdbea5e4db1ca476240903a9ce68e1f91e63ea99 Mon Sep 17 00:00:00 2001 From: Andrew Date: Fri, 10 Aug 2018 11:47:53 -0700 Subject: [PATCH] Always pass routing in case record is deleted before job runs [skip ci] --- lib/searchkick/record_indexer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/searchkick/record_indexer.rb b/lib/searchkick/record_indexer.rb index 266c8ae..e0eed0e 100644 --- a/lib/searchkick/record_indexer.rb +++ b/lib/searchkick/record_indexer.rb @@ -26,7 +26,7 @@ module Searchkick raise Searchkick::Error, "Active Job not found" end - if record.destroyed? && record.respond_to?(:search_routing) + if record.respond_to?(:search_routing) routing = record.search_routing end -- libgit2 0.21.0