diff options
author | José Valim <jose.valim@gmail.com> | 2010-04-29 13:24:24 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-04-29 13:24:35 +0200 |
commit | 3dfcb56e4585c8530be6dcc5129ae0c4d16c0dea (patch) | |
tree | 8cf54972e70ddad215eb786c9c76dc090b5f4556 /railties | |
parent | e9a9ef094e84abfe6a0167e9255abcf5b63412d9 (diff) | |
download | rails-3dfcb56e4585c8530be6dcc5129ae0c4d16c0dea.tar.gz rails-3dfcb56e4585c8530be6dcc5129ae0c4d16c0dea.tar.bz2 rails-3dfcb56e4585c8530be6dcc5129ae0c4d16c0dea.zip |
ActiveRecord middlewares should be inserted before AD::Cascade [#4493 state:resolved].
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/application/configuration.rb | 2 | ||||
-rw-r--r-- | railties/test/application/middleware_test.rb | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/railties/lib/rails/application/configuration.rb b/railties/lib/rails/application/configuration.rb index a58f7e9079..77f5eea3c4 100644 --- a/railties/lib/rails/application/configuration.rb +++ b/railties/lib/rails/application/configuration.rb @@ -143,7 +143,7 @@ module Rails middleware.use('::Rack::Runtime') middleware.use('::Rails::Rack::Logger') middleware.use('::ActionDispatch::ShowExceptions', lambda { consider_all_requests_local }, :if => lambda { action_dispatch.show_exceptions }) - middleware.use("::ActionDispatch::RemoteIp", lambda { action_dispatch.ip_spoofing_check }, lambda { action_dispatch.trusted_proxies }) + middleware.use('::ActionDispatch::RemoteIp', lambda { action_dispatch.ip_spoofing_check }, lambda { action_dispatch.trusted_proxies }) middleware.use('::Rack::Sendfile', lambda { action_dispatch.x_sendfile_header }) middleware.use('::ActionDispatch::Callbacks', lambda { !cache_classes }) middleware.use('::ActionDispatch::Cookies') diff --git a/railties/test/application/middleware_test.rb b/railties/test/application/middleware_test.rb index e9cddcc65a..d08f04bddb 100644 --- a/railties/test/application/middleware_test.rb +++ b/railties/test/application/middleware_test.rb @@ -27,14 +27,14 @@ module ApplicationTests "ActionDispatch::RemoteIp", "Rack::Sendfile", "ActionDispatch::Callbacks", + "ActiveRecord::ConnectionAdapters::ConnectionManagement", + "ActiveRecord::QueryCache", "ActionDispatch::Cookies", "ActionDispatch::Session::CookieStore", "ActionDispatch::Flash", "ActionDispatch::ParamsParser", "Rack::MethodOverride", - "ActionDispatch::Head", - "ActiveRecord::ConnectionAdapters::ConnectionManagement", - "ActiveRecord::QueryCache" + "ActionDispatch::Head" ], middleware end |