lib/heroku-qc-autoscale.rb in heroku-qc-autoscale-0.0.3 vs lib/heroku-qc-autoscale.rb in heroku-qc-autoscale-0.0.4

- old
+ new

@@ -7,18 +7,17 @@ require "autoscale/heroku" require "autoscale/queue_classic/callbacks" require "heroku-qc-autoscale/version" module Autoscale - mattr_accessor :api_key, :app, :mock, :scale, :active + mattr_accessor :api_key, :app, :mock, :scale # config and activate QC bindings def self.config(&block) yield(self) - activate if active == true end # activate QC queue callbacks - def self.activate + def self.activate! QC::Queue.send(:include, Autoscale::QueueClassic::QueueCallbacks) end end