aboutsummaryrefslogblamecommitdiffstats
path: root/actionpack/lib/action_controller/middlewares.rb
blob: cbcb5cb3e417e3d768eceac0b964557e2172fde5 (plain) (tree)
1
                                 

















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

use "ActionController::Failsafe"

use "ActiveRecord::QueryCache", :if => lambda { defined?(ActiveRecord) }

["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 Rack::MethodOverride