diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-01-21 12:44:07 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-01-21 12:44:07 -0600 |
commit | 73cc5f270a5c2a2eab76c6c02615fec608822494 (patch) | |
tree | 7d9a145c370a3fd6439edc6907504186415da126 /actionpack/lib/action_controller | |
parent | 82334a74311a3e0a8a1454d0a4a2ebf3c1138cea (diff) | |
download | rails-73cc5f270a5c2a2eab76c6c02615fec608822494.tar.gz rails-73cc5f270a5c2a2eab76c6c02615fec608822494.tar.bz2 rails-73cc5f270a5c2a2eab76c6c02615fec608822494.zip |
Setup ActiveRecord QueryCache middleware in the initializer
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/middlewares.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/actionpack/lib/action_controller/middlewares.rb b/actionpack/lib/action_controller/middlewares.rb index 30dbc26f11..f9cfc2b18e 100644 --- a/actionpack/lib/action_controller/middlewares.rb +++ b/actionpack/lib/action_controller/middlewares.rb @@ -4,8 +4,6 @@ use "Rack::Lock", :if => lambda { use "ActionController::Failsafe" -use "ActiveRecord::QueryCache", :if => lambda { defined?(ActiveRecord) } - ["ActionController::Session::CookieStore", "ActionController::Session::MemCacheStore", "ActiveRecord::SessionStore"].each do |store| @@ -18,6 +16,6 @@ use "ActiveRecord::QueryCache", :if => lambda { defined?(ActiveRecord) } ) end -use ActionController::RewindableInput -use ActionController::ParamsParser -use Rack::MethodOverride +use "ActionController::RewindableInput" +use "ActionController::ParamsParser" +use "Rack::MethodOverride" |