Skip to content

Commit b1d44fb

Browse files
David Rodríguezkarmi
David Rodríguez
authored andcommitted
[RAILS] Added missing require in the seeds.rb file for the expert template
Otherwise a `uninitialized constant Sidekiq::Queue (NameError)` exception is raised. Closes elastic#352
1 parent d5eed56 commit b1d44fb

File tree

1 file changed

+1
-0
lines changed
  • elasticsearch-rails/lib/rails/templates

1 file changed

+1
-0
lines changed

elasticsearch-rails/lib/rails/templates/seeds.rb

+1
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,5 @@
5353

5454
# Remove any jobs from the "elasticsearch" Sidekiq queue
5555
#
56+
require 'sidekiq/api'
5657
Sidekiq::Queue.new("elasticsearch").clear

0 commit comments

Comments
 (0)