diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-11-18 23:59:58 +0200 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-11-19 01:26:00 +0200 |
commit | 23df515fd09661a690c0c0a651e131bc3a6d0191 (patch) | |
tree | a8583bef6f0c96c3c99d8b141d00a5638035b008 /lib/award_emoji.rb | |
parent | d8676f18fcbd6b78af472b8b00c29f20820a74a9 (diff) | |
download | gitlab-ce-23df515fd09661a690c0c0a651e131bc3a6d0191.tar.gz |
Emoji: fix image of emoji when it is submitted via comment
Diffstat (limited to 'lib/award_emoji.rb')
-rw-r--r-- | lib/award_emoji.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/award_emoji.rb b/lib/award_emoji.rb index 95b9c8f921a..9e296f0bc3c 100644 --- a/lib/award_emoji.rb +++ b/lib/award_emoji.rb @@ -3,4 +3,8 @@ class AwardEmoji "beers", "disappointed", "ok_hand", "helicopter", "shit", "airplane", "alarm_clock", "ambulance", "anguished", "two_hearts", "wink"] + + def self.path_to_emoji_image(name) + "emoji/#{Emoji.emoji_filename(name)}.png" + end end
\ No newline at end of file |