class Sail::Types::Locales
Locales
settings will keep an array of locales. If the current I18n.locale is included in the array, the setting will return true.
Public Instance Methods
to_value()
click to toggle source
# File lib/sail/types/locales.rb, line 11 def to_value @setting.value .split(Sail.configuration.array_separator) .include?(I18n.locale.to_s) end