diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2010-06-05 21:31:16 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-06-05 22:05:57 -0700 |
commit | 7ace23abacfecf6d34630bb5141faf80a8b88634 (patch) | |
tree | 427fa871ebb93532be3bd557874b25943942d994 /actionpack/lib/action_dispatch | |
parent | a5f3f3ef7a10bcc3771910a63018cfd558485965 (diff) | |
download | rails-7ace23abacfecf6d34630bb5141faf80a8b88634.tar.gz rails-7ace23abacfecf6d34630bb5141faf80a8b88634.tar.bz2 rails-7ace23abacfecf6d34630bb5141faf80a8b88634.zip |
Restore flash sweep
Diffstat (limited to 'actionpack/lib/action_dispatch')
-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 043966a585..18771fe782 100644 --- a/actionpack/lib/action_dispatch/middleware/flash.rb +++ b/actionpack/lib/action_dispatch/middleware/flash.rb @@ -170,7 +170,7 @@ module ActionDispatch end def call(env) - if (session = env['rack.session']) && session.key?('flash') + if (session = env['rack.session']) && (flash = session['flash']) flash.sweep end |