Class: ActionDispatch::Routing::Mapper
- Inherits:
-
Object
- Object
- ActionDispatch::Routing::Mapper
- Defined in:
- lib/i18n_url/routes/mapper.rb
Defined Under Namespace
Modules: Base Classes: MappingLocalized
Instance Method Summary collapse
Instance Method Details
#i18n_url(&block) ⇒ Object
5 6 7 8 9 |
# File 'lib/i18n_url/routes/mapper.rb', line 5 def i18n_url(&block) @locales = I18n.available_locales yield @locales = nil end |