Skip to content
Permalink
Browse files

Delayed::Job delete_all does not accep any arguments in delayed_job (…

…4.1.5)
  • Loading branch information...
kireto authored and pat committed Apr 23, 2018
1 parent 274c6b9 commit e1a1af4de52aa36600dcf543b5cac598856f42e1
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/flying_sphinx/commands/index_sql.rb
@@ -18,9 +18,9 @@ def async?
end

def clear_jobs
::Delayed::Job.delete_all(
"handler LIKE '--- !ruby/object:FlyingSphinx::%'"
) if defined?(::Delayed) && ::Delayed::Job.table_exists?
::Delayed::Job.
where("handler LIKE '--- !ruby/object:FlyingSphinx::%'").
delete_all if defined?(::Delayed) && ::Delayed::Job.table_exists?
end

def indexing_options

0 comments on commit e1a1af4

Please sign in to comment.
You can’t perform that action at this time.