Permalink
Browse files

Pluralized flash message as I always add 's' anyway.

  • Loading branch information...
1 parent 79e5f72 commit 385ccffe69cc6a8213d301f8f3e843456c8bd0a5 @jnunemaker committed Apr 19, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/common_view_helpers.rb
@@ -98,7 +98,7 @@ def link_to_view_all(options={})
end
# displays flash messages by type of message
- def display_flash_message
+ def display_flash_messages
flash_types, string = [ :error, :warning, :notice ], ''
flash_types.each { |ft| string << "<div class=\"flash #{ft.to_s}\">#{flash[ft]}</div>" unless flash[ft].nil? }
string

0 comments on commit 385ccff

Please sign in to comment.