Class: ActionController::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/rich/i18n/actionpack/action_controller/base.rb

Instance Method Summary collapse

Instance Method Details

#prepare_rich_i18nObject



7
8
9
10
11
12
13
# File 'lib/rich/i18n/actionpack/action_controller/base.rb', line 7

def prepare_rich_i18n
  String.clear_translations
  ::Rich::I18n::Engine.current_controller = self
  yield
ensure
  ::Rich::I18n::Engine.current_controller = nil
end