Sha256: 8266f7aedf37f88670f90cea5bcd335757028874739f64890b20981ef2686b25
Contents?: true
Size: 554 Bytes
Versions: 1
Compression:
Stored size: 554 Bytes
Contents
module Backburner module Queue def self.included(base) base.send(:extend, Backburner::Helpers) base.extend ClassMethods Backburner::Worker.known_queue_classes << base end module ClassMethods # Returns or assigns queue name for this job # queue "some.task.name" # queue => "some.task.name" def queue(name=nil) if name @queue_name = name else # accessor @queue_name || dasherize(self.name) end end end # ClassMethods end # Job end # Backburner
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
backburner-0.0.1 | lib/backburner/queue.rb |