Merge pull request #1712 from riyad/use-gem-for-emoji
Use gem for Emoji
This commit is contained in:
commit
c007325451
852 changed files with 5 additions and 6 deletions
|
@ -1,4 +0,0 @@
|
|||
module Emoji
|
||||
path = "#{Rails.root}/vendor/assets/images/emoji"
|
||||
NAMES = Dir["#{path}/*.png"].sort.map {|f| File.basename(f, '.png')}
|
||||
end
|
|
@ -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
Add a link
Reference in a new issue