1
0
Fork 0
forked from OpenNeo/impress
impress/app/helpers/application_helper.rb

9 lines
162 B
Ruby
Raw Normal View History

2010-05-14 15:12:31 -07:00
module ApplicationHelper
2010-05-15 10:47:46 -07:00
def flashes
flash.inject('') do |html, pair|
key, value = pair
content_tag 'p', value, :class => key
end
end
2010-05-14 15:12:31 -07:00
end