Permalink
Browse files

Clean up flash a bit

  • Loading branch information...
wycats committed Oct 27, 2009
1 parent 58555d0 commit 4653719aa6407f7d0288210204c7f3d8f2728489
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/metal/flash.rb
@@ -151,7 +151,7 @@ def reset_session
# 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

0 comments on commit 4653719

Please sign in to comment.