mirror of
https://github.com/github/rails.git
synced 2026-01-09 14:48:01 -05:00
ignore nil session["flash"]
This commit is contained in:
@@ -272,7 +272,7 @@ module ActionDispatch
|
|||||||
env[KEY] = new_hash
|
env[KEY] = new_hash
|
||||||
end
|
end
|
||||||
|
|
||||||
if session.key?('flash') && session['flash'].empty?
|
if session['flash'] && session['flash'].empty?
|
||||||
session.delete('flash')
|
session.delete('flash')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user