Fix use of Emoji

This commit is contained in:
Riyad Preukschas 2012-10-16 16:26:40 +02:00
parent 5d42d92c87
commit ce91014730
2 changed files with 2 additions and 2 deletions

View file

@ -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?

View file

@ -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