1
0
Fork 0
forked from OpenNeo/impress
impress/app/helpers/campaigns_helper.rb
2015-08-30 16:49:46 -07:00

9 lines
240 B
Ruby

module CampaignsHelper
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
end