2019-05-02 17:17:27 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2014-12-22 18:12:26 -06:00
|
|
|
require 'enum_site_setting'
|
|
|
|
|
|
|
|
class EmojiSetSiteSetting < EnumSiteSetting
|
|
|
|
|
|
|
|
def self.valid_value?(val)
|
|
|
|
values.any? { |v| v[:value] == val.to_s }
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.values
|
|
|
|
@values ||= [
|
2016-07-22 14:27:51 -05:00
|
|
|
{ name: 'emoji_set.apple_international', value: 'apple' },
|
|
|
|
{ name: 'emoji_set.google', value: 'google' },
|
|
|
|
{ name: 'emoji_set.twitter', value: 'twitter' },
|
|
|
|
{ name: 'emoji_set.emoji_one', value: 'emoji_one' },
|
2017-07-04 07:08:47 -05:00
|
|
|
{ name: 'emoji_set.win10', value: 'win10' },
|
2017-07-06 02:05:15 -05:00
|
|
|
{ name: 'emoji_set.google_classic', value: 'google_classic' },
|
2017-07-04 07:08:47 -05:00
|
|
|
{ name: 'emoji_set.facebook_messenger', value: 'facebook_messenger' },
|
2014-12-22 18:12:26 -06:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.translate_names?
|
|
|
|
true
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|