lib/maitredee/active_job.rb in maitredee-0.8.3 vs lib/maitredee/active_job.rb in maitredee-0.8.4

- old
+ new

@@ -7,10 +7,11 @@ mod.descendants.each do |klass| create_publisher_job(klass) end end + # @api private def self.create_publisher_job(subclass) subclass.const_set("PublisherJob", Class.new(BasePublisherJob)) subclass::PublisherJob.service_class = subclass end @@ -37,9 +38,10 @@ def create_publisher_job(subclass) Maitredee::ActiveJob.create_publisher_job(subclass) end + # @private class BasePublisherJob < ::ActiveJob::Base class << self attr_accessor :service_class end