diff options
author | Xavier Noria <fxn@hashref.com> | 2017-03-22 00:51:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-22 00:51:29 -0700 |
commit | 34fe2a4fc778d18b7fe6bdf3629c1481bee789b9 (patch) | |
tree | a32f89a9b2db8272a788d63eb41a94964fa18204 /actionpack/lib/action_dispatch/middleware/flash.rb | |
parent | afbbcf24d791362a65c7f29b739c73a5b09e3816 (diff) | |
parent | 1c6747999a74eac84d4e30d698f59c16e0309d64 (diff) | |
download | rails-34fe2a4fc778d18b7fe6bdf3629c1481bee789b9.tar.gz rails-34fe2a4fc778d18b7fe6bdf3629c1481bee789b9.tar.bz2 rails-34fe2a4fc778d18b7fe6bdf3629c1481bee789b9.zip |
Merge pull request #28394 from shime/docs-action-dispatch
[docs] fix ActionDispatch documentation
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware/flash.rb')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/flash.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/flash.rb b/actionpack/lib/action_dispatch/middleware/flash.rb index cbe2f4be4d..6b29ce63ba 100644 --- a/actionpack/lib/action_dispatch/middleware/flash.rb +++ b/actionpack/lib/action_dispatch/middleware/flash.rb @@ -65,7 +65,7 @@ module ActionDispatch self.flash = flash_hash.dup end - if (!session.respond_to?(:loaded?) || session.loaded?) && # (reset_session uses {}, which doesn't implement #loaded?) + if (!session.respond_to?(:loaded?) || session.loaded?) && # reset_session uses {}, which doesn't implement #loaded? session.key?("flash") && session["flash"].nil? session.delete("flash") end |