diff options
author | Joshua Peek <josh@joshpeek.com> | 2010-01-16 17:21:46 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2010-01-16 17:22:27 -0600 |
commit | d2d4acf02793580e0f0c1bc380389527325b6254 (patch) | |
tree | c7749a89bda18f9367a31048f5a2e217dd3eae25 /railties/lib | |
parent | 8d87c80c19b7f0c0966fcfd52e7a6ed99d347a36 (diff) | |
download | rails-d2d4acf02793580e0f0c1bc380389527325b6254.tar.gz rails-d2d4acf02793580e0f0c1bc380389527325b6254.tar.bz2 rails-d2d4acf02793580e0f0c1bc380389527325b6254.zip |
Cookies middleware
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/configuration.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/rails/configuration.rb b/railties/lib/rails/configuration.rb index a2fab120cf..a597a01d72 100644 --- a/railties/lib/rails/configuration.rb +++ b/railties/lib/rails/configuration.rb @@ -15,6 +15,7 @@ module Rails middleware.use('::Rack::Runtime') middleware.use('ActionDispatch::ShowExceptions', lambda { ActionController::Base.consider_all_requests_local }) middleware.use('ActionDispatch::Callbacks', lambda { ActionController::Dispatcher.prepare_each_request }) + middleware.use('ActionDispatch::Cookies') middleware.use(lambda { ActionController::Base.session_store }, lambda { ActionController::Base.session_options }) middleware.use('ActionDispatch::Flash', :if => lambda { ActionController::Base.session_store }) middleware.use('ActionDispatch::ParamsParser') |