Module: I18n::Backend::Memoize

Defined in:
lib/i18n/backend/memoize.rb

Instance Method Summary collapse

Instance Method Details

#available_localesObject


13
14
15
# File 'lib/i18n/backend/memoize.rb', line 13

def available_locales
  @memoized_locales ||= super
end

#reload!Object


22
23
24
25
# File 'lib/i18n/backend/memoize.rb', line 22

def reload!
  reset_memoizations!
  super
end

#store_translations(locale, data, options = {}) ⇒ Object


17
18
19
20
# File 'lib/i18n/backend/memoize.rb', line 17

def store_translations(locale, data, options = {})
  reset_memoizations!(locale)
  super
end