Sha256: f12f8715c543928437ed455b0f8b962dea50a6f31184d11e6529ca3053e2ee91

Contents?: true

Size: 779 Bytes

Versions: 5

Compression:

Stored size: 779 Bytes

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
    #
    #     # 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

5 entries across 5 versions & 1 rubygems

Version Path
parallel_minion-1.1.0 lib/parallel_minion/railtie.rb
parallel_minion-1.0.0 lib/parallel_minion/railtie.rb
parallel_minion-0.4.1 lib/parallel_minion/railtie.rb
parallel_minion-0.4.0 lib/parallel_minion/railtie.rb
parallel_minion-0.3.0 lib/parallel_minion/railtie.rb