Sha256: 357813e05407922464eb30753ea54937d9d3a3cabbed1c760a9a15a2f237859d

Contents?: true

Size: 1.19 KB

Versions: 1

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

1 entries across 1 versions & 1 rubygems

Version Path
parallel_minion-1.3.0 lib/parallel_minion/railtie.rb