instance method fetch

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v2.3.18

Signature

fetch(*args, &block)

No documentation comment.

Parameters

args rest
block block
Source
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/cache.rb, line 56
        def fetch(*args, &block)
          result = I18n.cache_store.fetch(cache_key(*args), &block)
          raise result if result.is_a?(Exception)
          result = result.dup if result.frozen? rescue result
          result
        rescue MissingTranslationData => exception
          I18n.cache_store.write(cache_key(*args), exception)
          raise exception
        end

Defined in activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/cache.rb line 56 · View on GitHub · Improve this page · Find usages on GitHub

Defined in I18n::Backend::Cache

Type at least 2 characters to search.

↑↓ navigate · open · esc close