Module: I18n::Backend::Cache

Defined in:
lib/active_support/vendor/i18n-0.4.1/i18n/backend/cache.rb

Overview

TODO Should the cache be cleared if new translations are stored?

Instance Method Summary collapse

Instance Method Details

#translate(*args) ⇒ Object



50
51
52
# File 'lib/active_support/vendor/i18n-0.4.1/i18n/backend/cache.rb', line 50

def translate(*args)
  I18n.perform_caching? ? fetch(*args) { super } : super
end