aboutsummaryrefslogblamecommitdiffstats
path: root/lib/action_mailbox/engine.rb
blob: 4e800c54de30acf80750be3b993704a5bdb4efb7 (plain) (tree)
1
2
3
4
5
6
7
8
9






                                                 

                                                             

                                          
                                                                               



         
require "rails/engine"

module ActionMailbox
  class Engine < Rails::Engine
    isolate_namespace ActionMailbox
    config.eager_load_namespaces << ActionMailbox

    config.action_mailbox = ActiveSupport::OrderedOptions.new

    initializer "action_mailbox.config" do
      config.after_initialize do |app|
        ActionMailbox.logger = app.config.action_mailbox.logger || Rails.logger
      end
    end
  end
end