diff options
author | Heiko Bernloehr <Heiko.Bernloehr@FreeIT.de> | 2016-01-27 00:29:36 +0100 |
---|---|---|
committer | Heiko Bernloehr <Heiko.Bernloehr@FreeIT.de> | 2016-01-27 01:50:48 +0100 |
commit | 36e432d10e8e331298b4733fb83ac5958f2b61cf (patch) | |
tree | 81fa234c32bb7032aefb94ab4b8718a21d1c643c | |
parent | 8cac49181e39a3a4b74555e12ad4688a345467f8 (diff) | |
download | ecs2-36e432d10e8e331298b4733fb83ac5958f2b61cf.tar.gz ecs2-36e432d10e8e331298b4733fb83ac5958f2b61cf.zip |
Standard rails stack minus ParamsParser.
-rw-r--r-- | config/initializers/stack.rb | 29 |
1 files changed, 5 insertions, 24 deletions
diff --git a/config/initializers/stack.rb b/config/initializers/stack.rb index d04ded5..1f66123 100644 --- a/config/initializers/stack.rb +++ b/config/initializers/stack.rb @@ -1,37 +1,18 @@ # Copyright (C) 2007, 2008, 2009, 2010 Heiko Bernloehr (FreeIT.de). -# +# # This file is part of ECS. -# +# # ECS is free software: you can redistribute it and/or modify it # under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of # the License, or (at your option) any later version. -# +# # ECS is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Affero General Public License for more details. -# +# # You should have received a copy of the GNU Affero General Public # License along with ECS. If not, see <http://www.gnu.org/licenses/>. - -ActionController::Dispatcher.middleware = ActionController::MiddlewareStack.new do |m| - m.use Rack::Lock - m.use ActionController::Failsafe - m.use ActiveRecord::ConnectionAdapters::ConnectionManagement - m.use ActiveRecord::QueryCache - m.use Rack::MethodOverride - m.use Rack::Head -end - - -#use Rack::Lock -#use ActionController::Failsafe -#use ActiveRecord::ConnectionAdapters::ConnectionManagement -#use ActiveRecord::QueryCache -#use ActiveRecord::SessionStore, #<Proc:0xf7b75b90@(eval):8> -#use ActionController::ParamsParser -#use Rack::MethodOverride -#use Rack::Head - +ActionController::Dispatcher.middleware.delete("ActionController::ParamsParser") |