diff options
author | Marin Jankovski <marin@gitlab.com> | 2014-03-20 16:30:27 +0400 |
---|---|---|
committer | Marin Jankovski <marin@gitlab.com> | 2014-03-20 16:33:16 +0400 |
commit | 5f595be4b80ae57c92d01dc1c0026566f80e67d4 (patch) | |
tree | 71a4ce2514ff3bec5538b1b1a5754c07fcad2570 /lib | |
parent | 817f5ff6a3da3bcb494109bffbd9eca2fedc20b0 (diff) |
Use new gems methods.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/markdown.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/markdown.rb b/lib/gitlab/markdown.rb index e72f4f5d0ce..80bb00821f7 100644 --- a/lib/gitlab/markdown.rb +++ b/lib/gitlab/markdown.rb @@ -152,7 +152,7 @@ module Gitlab # # Returns boolean def valid_emoji?(emoji) - Emoji.names.include? emoji + Emoji.find_by_name emoji end # Private: Dispatches to a dedicated processing method based on reference |