diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2012-06-14 14:28:42 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2012-06-14 14:29:00 -0300 |
commit | c04d02b4256b15725b07ff2617f2c678204f1e7b (patch) | |
tree | 245bfa3a51e048cd6fc15380c405e56fb01fde48 /guides | |
parent | c1474ff2e78da7a3443c3eee470a1e9aa5b560dd (diff) | |
download | rails-c04d02b4256b15725b07ff2617f2c678204f1e7b.tar.gz rails-c04d02b4256b15725b07ff2617f2c678204f1e7b.tar.bz2 rails-c04d02b4256b15725b07ff2617f2c678204f1e7b.zip |
Add docs about how to remove some middleware
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/rails_on_rack.textile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/guides/source/rails_on_rack.textile b/guides/source/rails_on_rack.textile index 3a7c392508..cf1fbef1f5 100644 --- a/guides/source/rails_on_rack.textile +++ b/guides/source/rails_on_rack.textile @@ -195,6 +195,23 @@ use Rack::Runtime run Blog::Application.routes </shell> +You can also remove session related middleware appending the following lines to your application configuration + +<ruby> +# config/application.rb +config.middleware.delete "ActionDispatch::Cookies" +config.middleware.delete "ActionDispatch::Session::CookieStore" +config.middleware.delete "ActionDispatch::Flash" +</ruby> + +and you can also remove browser related middleware + +<ruby> +# config/application.rb +config.middleware.delete "ActionDispatch::BestStandardsSupport" +config.middleware.delete "Rack::MethodOverride" +</ruby> + h4. Internal Middleware Stack Much of Action Controller's functionality is implemented as Middlewares. The following list explains the purpose of each of them: |