Module: PagesCore::PageModel::Localizable

Extended by:
ActiveSupport::Concern
Includes:
ActiveSupport::Inflector
Included in:
Page
Defined in:
app/models/concerns/pages_core/page_model/localizable.rb

Instance Method Summary collapse

Instance Method Details

#transliterated_nameObject


27
28
29
30
31
32
33
# File 'app/models/concerns/pages_core/page_model/localizable.rb', line 27

def transliterated_name
  prev_locale = I18n.locale
  I18n.locale = locale.to_sym if locale
  transliterated = transliterate(name)
  I18n.locale = prev_locale
  transliterated
end