Class: ReeI18n::CheckLocaleExists

Inherits:
Object
  • Object
show all
Includes:
Ree::FnDSL
Defined in:
lib/ree_lib/packages/ree_i18n/package/ree_i18n/functions/check_locale_exists.rb

Instance Method Summary collapse

Instance Method Details

#call(value, locale = nil) ⇒ Object



9
10
11
# File 'lib/ree_lib/packages/ree_i18n/package/ree_i18n/functions/check_locale_exists.rb', line 9

def call(value, locale = nil)
  I18n.exists?(value, locale || I18n.default_locale)
end