workless icon indicating copy to clipboard operation
workless copied to clipboard

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

Open Hareramrai opened this issue 10 years ago • 1 comments

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.

Hareramrai avatar Jul 30 '14 10:07 Hareramrai

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

davidakachaos avatar Sep 05 '14 06:09 davidakachaos