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

undefined method `scaler=' for #<Class:0x00000003aa6a10> (NoMethodError) #82

Open
Hareramrai opened this issue Jul 30, 2014 · 1 comment

Comments

@Hareramrai
Copy link

Hi

I am using the below gems

gem "workless", "1.1.1"
gem "delayed_job",         "2.0.7"
gem "rails", "~>2.3"

In production.rb, I have added the below code

config.after_initialize do
  p Delayed::Job
  Delayed::Job.scaler = :heroku
end

But after starting the rails server I am getting the below error. .

Delayed::Backend::ActiveRecord::Job(id: integer, priority: integer, attempts: integer, handler: text, last_error: text, run_at: datetime, locked_at: datetime, failed_at: datetime, locked_by: string, created_at: datetime, updated_at: datetime)
`method_missing': undefined method `scaler=' for #<Class:0x00000003aa6a10> (NoMethodError)

Please help me on this.

@davidakachaos
Copy link
Collaborator

Is there a reason you don't use the latest version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants