Fix use of Emoji
This commit is contained in:
parent
5d42d92c87
commit
ce91014730
2 changed files with 2 additions and 2 deletions
|
@ -115,7 +115,7 @@ module ApplicationHelper
|
|||
def emoji_autocomplete_source
|
||||
# should be an array of strings
|
||||
# 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
|
||||
|
||||
def ldap_enable?
|
||||
|
|
|
@ -128,7 +128,7 @@ module Gitlab
|
|||
#
|
||||
# Returns boolean
|
||||
def valid_emoji?(emoji)
|
||||
Emoji::NAMES.include? emoji
|
||||
Emoji.names.include? emoji
|
||||
end
|
||||
|
||||
# Private: Dispatches to a dedicated processing method based on reference
|
||||
|
|
Loading…
Add table
Reference in a new issue