aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/dispatcher.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2008-12-22 11:31:18 -0600
committerJoshua Peek <josh@joshpeek.com>2008-12-22 11:31:18 -0600
commitaa002c0e86afdc83693f14667a710107843f0fbd (patch)
tree0ec063c6a18b2f9f523ada8a5d338b68dd562be2 /actionpack/lib/action_controller/dispatcher.rb
parent63aac338332a06d3c9e28dde7954679703ec7620 (diff)
downloadrails-aa002c0e86afdc83693f14667a710107843f0fbd.tar.gz
rails-aa002c0e86afdc83693f14667a710107843f0fbd.tar.bz2
rails-aa002c0e86afdc83693f14667a710107843f0fbd.zip
ActiveRecord::QueryCache middleware
Diffstat (limited to 'actionpack/lib/action_controller/dispatcher.rb')
-rw-r--r--actionpack/lib/action_controller/dispatcher.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/dispatcher.rb b/actionpack/lib/action_controller/dispatcher.rb
index e1eaaf7cbb..0cfd451c04 100644
--- a/actionpack/lib/action_controller/dispatcher.rb
+++ b/actionpack/lib/action_controller/dispatcher.rb
@@ -48,6 +48,7 @@ module ActionController
!ActionController::Base.allow_concurrency
}
middleware.use "ActionController::Failsafe"
+ middleware.use "ActiveRecord::QueryCache" if defined?(ActiveRecord)
["ActionController::Session::CookieStore",
"ActionController::Session::MemCacheStore",