Module: I18n::Backend::Memoize

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

Instance Method Summary collapse

Instance Method Details

#available_localesObject



15
16
17
# File 'lib/i18n/backend/memoize.rb', line 15

def available_locales
  @memoized_locales ||= super
end

#eager_load!Object



29
30
31
32
33
# File 'lib/i18n/backend/memoize.rb', line 29

def eager_load!
  memoized_lookup
  available_locales
  super
end

#reload!Object



24
25
26
27
# File 'lib/i18n/backend/memoize.rb', line 24

def reload!
  reset_memoizations!
  super
end

#store_translations(locale, data, options = EMPTY_HASH) ⇒ Object



19
20
21
22
# File 'lib/i18n/backend/memoize.rb', line 19

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