aboutsummaryrefslogblamecommitdiffstats
path: root/actionpack/lib/action_controller/dispatch/middlewares.rb
blob: 3bf3dbebab8714b3bc19e1e5576e4dbc96f84f6f (plain) (tree)
1
2
3
4
5
6
7
8
                                 


                                           
                              
 

                                          








                                                               
 

                                     
                          
use "Rack::Lock", :if => lambda {
  !ActionController::Base.allow_concurrency
}

use "ActionDispatch::Failsafe"

["ActionDispatch::Session::CookieStore",
 "ActionDispatch::Session::MemCacheStore",
 "ActiveRecord::SessionStore"].each do |store|
   use(store, ActionController::Base.session_options,
      :if => lambda {
        if session_store = ActionController::Base.session_store
          session_store.name == store
        end
      }
    )
end

use "ActionDispatch::RewindableInput"
use "ActionDispatch::ParamsParser"
use "Rack::MethodOverride"