class LocaleValidator

Protected Instance Methods

is_valid?(value) click to toggle source
# File lib/validators/locale_validator.rb, line 8
def is_valid?(value)
  I18n.locale_available?(value)
end
validation_message() click to toggle source
# File lib/validators/locale_validator.rb, line 4
def validation_message
  'is not a valid locale.'
end