Sha256: a437bd7b677ef951a66ab13735516140b6b0d2dcab73dbacd5e8f74d1569cd02
Contents?: true
Size: 584 Bytes
Versions: 1
Compression:
Stored size: 584 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. # # @example # 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.2 | lib/backburner/queue.rb |