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_name ⇒ Object
29 30 31 32 33 34 35 |
# File 'app/models/concerns/pages_core/page_model/localizable.rb', line 29 def transliterated_name prev_locale = I18n.locale I18n.locale = locale.to_sym if locale transliterated = transliterate(name) I18n.locale = prev_locale transliterated end |