Commit 26f008b7757aa0fd9f20eb206a10b99ea86f45d1
1 parent
272c829c
Exists in
master
and in
18 other branches
Cleaner code [skip ci]
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
lib/searchkick/record_indexer.rb
@@ -26,7 +26,9 @@ module Searchkick | @@ -26,7 +26,9 @@ 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 | - routing = record.search_routing if record.destroyed? && record.respond_to?(:search_routing) | 29 | + if record.destroyed? && record.respond_to?(:search_routing) |
30 | + routing = record.search_routing | ||
31 | + end | ||
30 | 32 | ||
31 | Searchkick::ReindexV2Job.perform_later( | 33 | Searchkick::ReindexV2Job.perform_later( |
32 | record.class.name, | 34 | record.class.name, |