lib/sneakers/worker.rb in sneakers-2.3.2 vs lib/sneakers/worker.rb in sneakers-2.3.4
- old
+ new
@@ -121,11 +121,14 @@
def worker_trace(msg)
logger.debug(log_msg(msg))
end
+ Classes = []
+
def self.included(base)
base.extend ClassMethods
+ Classes << base if base.is_a? Class
end
module ClassMethods
attr_reader :queue_opts
attr_reader :queue_name