Skip to content
Browse files

Modify process_in_background for Sidekiq

  • Loading branch information...
1 parent 133ba20 commit 8faca8c28473b21041d2e7637013344f683d245c @vtabary committed Aug 27, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/backgrounder/orm/base.rb
View
4 lib/backgrounder/orm/base.rb
@@ -57,9 +57,9 @@ def enqueue_#{column}_background_job
elsif defined? ::Resque
::Resque.enqueue #{worker}, self.class.name, id.to_s, #{column}.mounted_as
elsif defined? ::Qu
- ::Qu.enqueue #{worker}, self.class.name, id, #{column}.mounted_as
+ ::Qu.enqueue #{worker}, self.class.name, id.to_s, #{column}.mounted_as
elsif defined? ::Sidekiq
- ::Sidekiq::Client.enqueue #{worker}, self.class.name, id, #{column}.mounted_as
+ ::Sidekiq::Client.enqueue #{worker}, self.class.name, id.to_s, #{column}.mounted_as
end
end

0 comments on commit 8faca8c

Please sign in to comment.
Something went wrong with that request. Please try again.