impress/app/helpers/campaigns_helper.rb

10 lines
240 B
Ruby
Raw Normal View History

2015-08-05 16:26:12 -07:00
module CampaignsHelper
2015-08-30 16:49:46 -07:00
def emote_md(text)
text = text.
gsub(/:\)/, image_tag('emoticons/smiley.gif')).
gsub(/:D/, image_tag('emoticons/grin.gif')).
gsub(/:P/, image_tag('emoticons/tongue.gif'))
md text
end
2015-08-05 16:26:12 -07:00
end