Sha256: 9472b68d62858e4cc6497554f4065ff5e97ab424b52b12f065d70dd3ee90f923

Contents?: true

Size: 444 Bytes

Versions: 36

Compression:

Stored size: 444 Bytes

Contents

module Sqewer
  require 'sqewer/extensions/active_job_adapter' if defined?(::ActiveJob)
  
  # Loads the Sqewer components that provide ActiveJob compatibility
  class Railtie < Rails::Railtie
    initializer "sqewer.load_active_job_adapter" do |app|
      if defined?(::ActiveJob)
        Rails.logger.warn "sqewer set as ActiveJob adapter. Make sure to call 'Rails.application.eager_load!` in your worker process"
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
sqewer-10.0.0 lib/sqewer/extensions/railtie.rb
sqewer-9.0.0 lib/sqewer/extensions/railtie.rb
sqewer-8.1.0 lib/sqewer/extensions/railtie.rb
sqewer-8.1.0.pre.1 lib/sqewer/extensions/railtie.rb
sqewer-8.0.3 lib/sqewer/extensions/railtie.rb
sqewer-8.0.2 lib/sqewer/extensions/railtie.rb
sqewer-8.0.1 lib/sqewer/extensions/railtie.rb
sqewer-8.0.0 lib/sqewer/extensions/railtie.rb
sqewer-7.0.0 lib/sqewer/extensions/railtie.rb
sqewer-6.5.1 lib/sqewer/extensions/railtie.rb
sqewer-6.5.0 lib/sqewer/extensions/railtie.rb
sqewer-6.4.1 lib/sqewer/extensions/railtie.rb
sqewer-6.4.0 lib/sqewer/extensions/railtie.rb
sqewer-6.3.0 lib/sqewer/extensions/railtie.rb
sqewer-6.2.2 lib/sqewer/extensions/railtie.rb
sqewer-6.2.1 lib/sqewer/extensions/railtie.rb
sqewer-6.2.0 lib/sqewer/extensions/railtie.rb
sqewer-6.1.0 lib/sqewer/extensions/railtie.rb
sqewer-6.0.6 lib/sqewer/extensions/railtie.rb
sqewer-6.0.5 lib/sqewer/extensions/railtie.rb