class

AbstractController::I18nProxy

v3.0.9 - Show latest stable - Superclass: ::I18n::Config

This is a class to fix I18n global state. Whenever you provide I18n.locale during a request, it will trigger the lookup_context and consequently expire the cache. TODO Add some deprecation warnings to remove I18n.locale from controllers

Attributes

[R]lookup_context
[R]original_config

Files

  • actionpack/lib/abstract_controller/rendering.rb