aboutsummaryrefslogblamecommitdiffstats
path: root/actionpack/lib/action_dispatch/railtie.rb
blob: 38da44d7e7ae5013bb3f91e55479c04417d18725 (plain) (tree)
1
2
3
4
5
6
7
8
9




                                
                                                              
                                                 
                                                   
                                                 
 

                                                              
                                                                                    


       
require "action_dispatch"
require "rails"

module ActionDispatch
  class Railtie < Rails::Railtie
    config.action_dispatch = ActiveSupport::OrderedOptions.new
    config.action_dispatch.x_sendfile_header = ""
    config.action_dispatch.ip_spoofing_check = true
    config.action_dispatch.show_exceptions = true

    # Prepare dispatcher callbacks and run 'prepare' callbacks
    initializer "action_dispatch.prepare_dispatcher" do |app|
      ActionDispatch::Callbacks.to_prepare { app.routes_reloader.reload_if_changed }
    end
  end
end