mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
21 lines
584 B
Ruby
21 lines
584 B
Ruby
use "ActionController::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::VerbPiggybacking
|