Commit ce910147 authored by Riyad Preukschas's avatar Riyad Preukschas

Fix use of Emoji

parent 5d42d92c
...@@ -115,7 +115,7 @@ module ApplicationHelper ...@@ -115,7 +115,7 @@ module ApplicationHelper
def emoji_autocomplete_source def emoji_autocomplete_source
# should be an array of strings # should be an array of strings
# so to_s can be called, because it is sufficient and to_json is too slow # so to_s can be called, because it is sufficient and to_json is too slow
Emoji::NAMES.to_s Emoji.names.to_s
end end
def ldap_enable? def ldap_enable?
......
...@@ -128,7 +128,7 @@ module Gitlab ...@@ -128,7 +128,7 @@ module Gitlab
# #
# Returns boolean # Returns boolean
def valid_emoji?(emoji) def valid_emoji?(emoji)
Emoji::NAMES.include? emoji Emoji.names.include? emoji
end end
# Private: Dispatches to a dedicated processing method based on reference # Private: Dispatches to a dedicated processing method based on reference
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment