Class: ActionController::Routing::RouteSet::Mapper
- Inherits:
-
Object
- Object
- ActionController::Routing::RouteSet::Mapper
- Defined in:
- lib/i18n_routing_rails2.rb
Instance Method Summary collapse
Instance Method Details
#localized(locales = I18n.available_locales, opts = {}) ⇒ Object
39 40 41 42 43 44 45 46 |
# File 'lib/i18n_routing_rails2.rb', line 39 def localized(locales = I18n.available_locales, opts = {}) old_value = @set.locales @set.locales = locales @set.i18n_verbose ||= opts.delete(:verbose) yield ensure @set.locales = old_value end |