Commit fdbea5e4db1ca476240903a9ce68e1f91e63ea99
1 parent
26f008b7
Exists in
master
and in
18 other branches
Always pass routing in case record is deleted before job runs [skip ci]
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/searchkick/record_indexer.rb
@@ -26,7 +26,7 @@ module Searchkick | @@ -26,7 +26,7 @@ module Searchkick | ||
26 | raise Searchkick::Error, "Active Job not found" | 26 | raise Searchkick::Error, "Active Job not found" |
27 | end | 27 | end |
28 | 28 | ||
29 | - if record.destroyed? && record.respond_to?(:search_routing) | 29 | + if record.respond_to?(:search_routing) |
30 | routing = record.search_routing | 30 | routing = record.search_routing |
31 | end | 31 | end |
32 | 32 |