Sha256: 685bdc9d2ecae52fcc292495f92536c88669015af2a477c7ad4a464f8ef8bcfc

Contents?: true

Size: 654 Bytes

Versions: 6

Compression:

Stored size: 654 Bytes

Contents

# frozen_string_literal: true

module AdvancedSneakersActiveJob
  # Rails integration
  class Railtie < ::Rails::Railtie
    initializer 'advanced_sneakers_activejob.discover_mailer_job' do
      ActiveSupport.on_load(:action_mailer) do
        require 'action_mailer/delivery_job' # Enforce definition of ActionMailer::DeliveryJob::Consumer
      end
    end

    initializer 'advanced_sneakers_activejob.discover_default_job' do
      ActiveSupport.on_load(:active_job) do
        ActiveJob::Base.include AdvancedSneakersActiveJob::ActiveJobPatch
      end
    end

    rake_tasks do
      require 'advanced_sneakers_activejob/tasks'
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
advanced-sneakers-activejob-0.3.4 lib/advanced_sneakers_activejob/railtie.rb
advanced-sneakers-activejob-0.3.3 lib/advanced_sneakers_activejob/railtie.rb
advanced-sneakers-activejob-0.3.2 lib/advanced_sneakers_activejob/railtie.rb
advanced-sneakers-activejob-0.3.1 lib/advanced_sneakers_activejob/railtie.rb
advanced-sneakers-activejob-0.3.0 lib/advanced_sneakers_activejob/railtie.rb
advanced-sneakers-activejob-0.2.3 lib/advanced_sneakers_activejob/railtie.rb