Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mongoid 3.0.x Fix #53

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/backgrounder/orm/base.rb
Expand Up @@ -51,13 +51,13 @@ def set_#{column}_processing


def enqueue_#{column}_background_job def enqueue_#{column}_background_job
if defined? ::GirlFriday 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 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 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 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
end end
end end


Expand Down