1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Restore flash sweep

This commit is contained in:
Jeremy Kemper 2010-06-05 21:31:16 -07:00
parent a5f3f3ef7a
commit 7ace23abac

View file

@ -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