8 lines
162 B
Ruby
8 lines
162 B
Ruby
module ApplicationHelper
|
|
def flashes
|
|
flash.inject('') do |html, pair|
|
|
key, value = pair
|
|
content_tag 'p', value, :class => key
|
|
end
|
|
end
|
|
end
|