Browse files

Additionnaly to issue and pull request #53, change the second functio…

…n : store_in_background
  • Loading branch information...
1 parent 7e00510 commit 133ba207d6a1be78bf61e258c52a5092bb3c8d0b @vtabary committed Aug 27, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/backgrounder/orm/base.rb
View
10 lib/backgrounder/orm/base.rb
@@ -109,15 +109,15 @@ def store_#{column}!
def enqueue_#{column}_background_job
if defined? ::GirlFriday
- CARRIERWAVE_QUEUE << { :worker => #{worker}.new(self.class.name, id, #{column}.mounted_as) }
+ CARRIERWAVE_QUEUE << { :worker => #{worker}.new(self.class.name, id.to_s, #{column}.mounted_as) }
elsif defined? ::Delayed::Job
- ::Delayed::Job.enqueue #{worker}.new(self.class.name, id, #{column}.mounted_as)
+ ::Delayed::Job.enqueue #{worker}.new(self.class.name, id.to_s, #{column}.mounted_as)
elsif defined? ::Resque
- ::Resque.enqueue #{worker}, self.class.name, id, #{column}.mounted_as
+ ::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 133ba20

Please sign in to comment.