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




                                           










                                                               
 


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

use "ActionController::Failsafe"

["ActionController::Session::CookieStore",
 "ActionController::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 "ActionController::RewindableInput"
use "ActionController::ParamsParser"
use "Rack::MethodOverride"