Sha256: 544341c2c98b8696e70d1a849ede4aff9f66f80136207417bd765bc0f370d186

Contents?: true

Size: 354 Bytes

Versions: 11

Compression:

Stored size: 354 Bytes

Contents

require 'delayed_job'
require 'rails'

module Delayed
  class Railtie < Rails::Railtie
    initializer :after_initialize do
      Delayed::Worker.logger ||= if defined?(Rails)
        Rails.logger
      elsif defined?(RAILS_DEFAULT_LOGGER)
        RAILS_DEFAULT_LOGGER
      end
    end

    rake_tasks do
      load 'delayed/tasks.rb'
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
delayed_job-4.1.13 lib/delayed/railtie.rb
delayed_job-4.1.12 lib/delayed/railtie.rb
delayed_job-4.1.12.rc1 lib/delayed/railtie.rb
delayed_job-4.1.11 lib/delayed/railtie.rb
delayed_job-4.1.10 lib/delayed/railtie.rb
delayed_job-4.1.9 lib/delayed/railtie.rb
delayed_job-4.1.8 lib/delayed/railtie.rb
delayed_job-4.1.8.beta1 lib/delayed/railtie.rb
delayed_job-4.1.7 lib/delayed/railtie.rb
delayed_job-4.1.7.beta1 lib/delayed/railtie.rb
delayed_job-4.1.6 lib/delayed/railtie.rb