Class: ActionController::Base
- Inherits:
-
Object
- Object
- ActionController::Base
- Defined in:
- lib/route_translator/extensions/action_controller.rb
Instance Method Summary collapse
Instance Method Details
#set_locale_from_url(&block) ⇒ Object
7 8 9 |
# File 'lib/route_translator/extensions/action_controller.rb', line 7 def set_locale_from_url(&block) I18n.with_locale params[RouteTranslator.locale_param_key], &block end |