Method: Lolita::SystemConfiguration::Base#locale=

Defined in:
lib/lolita/system_configuration/base.rb

#locale=(given_locale) ⇒ Object



55
56
57
58
59
60
61
# File 'lib/lolita/system_configuration/base.rb', line 55

def locale=given_locale
  @locale=if locales.include?(given_locale.to_s.to_sym)
    given_locale.to_s.to_sym
  else
    Lolita.default_locale
  end
end