Commit 37a8444fe7fdc9dd060d97b0608349a1ce95185b

Authored by Andrew Kane
1 parent 5c4874e4

Enqueue job

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/searchkick/model.rb
... ... @@ -34,7 +34,7 @@ module Searchkick
34 34  
35 35 if callbacks == :async
36 36 def reindex_async
37   - Searchkick::ReindexJob.new(self.class.name, id)
  37 + Delayed::Job.enqueue Searchkick::ReindexJob.new(self.class.name, id)
38 38 end
39 39 end
40 40  
... ...