lib/workless/scalers/base.rb in workless_revived-1.2.4.2 vs lib/workless/scalers/base.rb in workless_revived-1.2.5
- old
+ new
@@ -1,27 +1,23 @@
require 'delayed_job'
module Delayed
module Workless
module Scaler
-
class Base
def self.jobs
- if Rails.version >= "3.0.0"
- Delayed::Job.where(:failed_at => nil)
+ if Rails.version >= '3.0.0'
+ Delayed::Job.where(failed_at: nil)
else
- Delayed::Job.all(:conditions => { :failed_at => nil })
+ Delayed::Job.all(conditions: { failed_at: nil })
end
end
end
module HerokuClient
-
def client
- @client ||= ::Heroku::API.new(:api_key => ENV['HEROKU_API_KEY'])
+ @client ||= ::Heroku::API.new(api_key: ENV['HEROKU_API_KEY'])
end
-
end
-
end
end
end