Sha256: 10784b62b2f9353984323761092798bdb4a56bbeda8ad456ec1411f760fc172d

Contents?: true

Size: 553 Bytes

Versions: 3

Compression:

Stored size: 553 Bytes

Contents

module DelayedJobMaster
  class Railtie < Rails::Railtie
    config.after_initialize do
      case DelayedJobMaster.config.listener
      when :postgresql
        require_relative '../delayed/master/postgresql/job_notifier'
        if defined?(Delayed::Backend::ActiveRecord)
          Delayed::Backend::ActiveRecord::Job.include Delayed::Master::Postgresql::JobNotifier
        end
        if defined?(Delayed::Backend::Bulk)
          Delayed::Backend::Bulk.include Delayed::Master::Postgresql::BulkJobNotifier
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
delayed_job_master-3.1.0 lib/delayed_job_master/railtie.rb
delayed_job_master-3.0.1 lib/delayed_job_master/railtie.rb
delayed_job_master-3.0.0 lib/delayed_job_master/railtie.rb