aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorYehuda Katz <wycats@gmail.com>2009-10-26 23:11:52 -0700
committerYehuda Katz <wycats@gmail.com>2009-10-27 09:15:41 -0700
commit4653719aa6407f7d0288210204c7f3d8f2728489 (patch)
tree860b53f613f216bb6708fe04289817a41803affc /actionpack
parent58555d0c8b8beaee02ad72cfaf262dbf21674066 (diff)
downloadrails-4653719aa6407f7d0288210204c7f3d8f2728489.tar.gz
rails-4653719aa6407f7d0288210204c7f3d8f2728489.tar.bz2
rails-4653719aa6407f7d0288210204c7f3d8f2728489.zip
Clean up flash a bit
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_controller/metal/flash.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/flash.rb b/actionpack/lib/action_controller/metal/flash.rb
index b2fc359df4..f43900faa0 100644
--- a/actionpack/lib/action_controller/metal/flash.rb
+++ b/actionpack/lib/action_controller/metal/flash.rb
@@ -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