diff options
author | Will Bryant <will.bryant@gmail.com> | 2012-01-24 00:10:13 +1300 |
---|---|---|
committer | Will Bryant <will.bryant@gmail.com> | 2012-04-28 21:36:30 +1200 |
commit | 5638adfd87dbec20183443204793c1de41ee9bb7 (patch) | |
tree | 6a3bfd355d6cea6f8737b4c2bfde1007ad5d0d42 /actionpack/lib/action_controller/test_case.rb | |
parent | 9fc9e894771d1915fe3e565305424ed9ca537b79 (diff) | |
download | rails-5638adfd87dbec20183443204793c1de41ee9bb7.tar.gz rails-5638adfd87dbec20183443204793c1de41ee9bb7.tar.bz2 rails-5638adfd87dbec20183443204793c1de41ee9bb7.zip |
fix the Flash middleware loading the session on every request (very dangerous especially with Rack::Cache), it should only be loaded when the flash method is called
Diffstat (limited to 'actionpack/lib/action_controller/test_case.rb')
-rw-r--r-- | actionpack/lib/action_controller/test_case.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb index 66a4808e36..4d665ce855 100644 --- a/actionpack/lib/action_controller/test_case.rb +++ b/actionpack/lib/action_controller/test_case.rb @@ -473,7 +473,6 @@ module ActionController @request.session = ActionController::TestSession.new(session) if session @request.session["flash"] = @request.flash.update(flash || {}) - @request.session["flash"].sweep @controller.request = @request build_request_uri(action, parameters) |