Clean up flash a bit

This commit is contained in:
Yehuda Katz 2009-10-26 23:11:52 -07:00
parent 58555d0c8b
commit 4653719aa6
1 changed files with 1 additions and 1 deletions

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