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

Clean up flash a bit

This commit is contained in:
Yehuda Katz 2009-10-26 23:11:52 -07:00
parent 58555d0c8b
commit 4653719aa6

View file

@ -151,7 +151,7 @@ module ActionController #:nodoc:
# read a notice you put there or <tt>flash["notice"] = "hello"</tt>
# to put a new one.
def flash #:doc:
if !@_flash
unless @_flash
@_flash = session["flash"] || FlashHash.new
@_flash.sweep
end