aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-09-25 15:35:34 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-09-25 15:35:34 -0700
commitca324a0d9080660dc9c1803f90976cecb81b5f58 (patch)
treecc0d0df92d1fef7da6706ed8b4687530175587ba /actionpack/lib/action_controller
parentd14caa300c8d3af1e04c37811ae81c7e5f596ab0 (diff)
downloadrails-ca324a0d9080660dc9c1803f90976cecb81b5f58.tar.gz
rails-ca324a0d9080660dc9c1803f90976cecb81b5f58.tar.bz2
rails-ca324a0d9080660dc9c1803f90976cecb81b5f58.zip
commit the flash after the controller finishes being serviced
Committing the flash needs to happen in order for the session to be written correctly, so lets guarantee that it actually does happen.
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r--actionpack/lib/action_controller/metal.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/metal.rb b/actionpack/lib/action_controller/metal.rb
index 3d72755f1d..beeaae9d0c 100644
--- a/actionpack/lib/action_controller/metal.rb
+++ b/actionpack/lib/action_controller/metal.rb
@@ -187,6 +187,7 @@ module ActionController
set_request!(request)
set_response!(response)
process(name)
+ request.commit_flash
to_a
end