Class: RailsI18nOnair::Current

Inherits:
ActiveSupport::CurrentAttributes
  • Object
show all
Defined in:
lib/rails_i18n_onair/current.rb

Overview

Request-level caching using ActiveSupport::CurrentAttributes This caches translations for the duration of a single request

Instance Method Summary collapse

Instance Method Details

#translation_cacheObject



7
8
9
# File 'lib/rails_i18n_onair/current.rb', line 7

def translation_cache
  super || self.translation_cache = {}
end