Permalink
Browse files

flash.now added

  • Loading branch information...
1 parent d87af56 commit d9a8492a4747e1c3e96ad25595af030a6d22dea2 Elad Meidar committed Feb 21, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 app/helpers/flash.rb
View
@@ -31,6 +31,11 @@ def clear
@flash_hash = Hash.new(nil)
end
+ def now
+ clear
+ @flash_hash
+ end
+
def empty?
@flash_hash.empty?
end

0 comments on commit d9a8492

Please sign in to comment.