Permalink
Browse files

Edited lib/flash_manager_helper.rb via GitHub

  • Loading branch information...
1 parent d164762 commit 26b26845149d4a7c9d38212057cb8c9d671f73cf @ArunKumar committed Jul 8, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/flash_manager_helper.rb
View
4 lib/flash_manager_helper.rb 100755 → 100644
@@ -24,9 +24,9 @@ def flash_messages(sublayout = nil)
# CSS class for aligning flash inside sub layout.
layout_flash_class = "sublayout_#{sublayout}_align" if sublayout
- if flash[:notice]
+ if flash[:notice].present?
flash_class = "success_flash"
- elsif flash[:error]
+ elsif flash[:error].present?
flash_class = "error_flash"
end

0 comments on commit 26b2684

Please sign in to comment.