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/lib | |
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/lib')
-rw-r--r-- | railties/lib/rails/application/configuration.rb | 2 |
1 files changed, 1 insertions, 1 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') |