Sha256: 11a26c8037e418a4ec5b50881d8d59b2c81dfa88ad77c3aad9206c38df65e226
Contents?: true
Size: 1.19 KB
Versions: 2
Compression:
Stored size: 1.19 KB
Contents
module ParallelMinion #:nodoc: class Railtie < Rails::Railtie #:nodoc: # # Make the ParallelMinion config available in the Rails application config # # Example: Make debugging easier # in file config/environments/development.rb # # Rails::Application.configure do # # # Run Minions in the current thread to make debugging easier # config.parallel_minion.enabled = false # # # Change the log level for the started log messages to :debug, # # so that they do not show up in production when log level is :info. # config.parallel_minion.started_log_level = :debug # # # Change the log level for the completed log messages to :debug, # # so that they do not show up in production when log level is :info. # config.parallel_minion.completed_log_level = :debug # # # Add a model so that its current scope is copied to the Minion # config.after_initialize do # # Perform in an after_initialize so that the model has been loaded # config.parallel_minion.scoped_classes << MyScopedModel # end # end config.parallel_minion = ::ParallelMinion::Minion end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
parallel_minion-1.2.1 | lib/parallel_minion/railtie.rb |
parallel_minion-1.2.0 | lib/parallel_minion/railtie.rb |