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:
parent
58555d0c8b
commit
4653719aa6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue