instance method failsafe

Ruby on Rails edge

Since edge Private — implementation detail, not part of the public API

Signature

failsafe(method, returning: nil)

No documentation comment.

Parameters

method req
returning key = nil
Source
# File activesupport/lib/active_support/cache/deprecated_redis_cache_store.rb, line 502
        def failsafe(method, returning: nil)
          yield
        rescue *FAILSAFE_ERRORS => error
          @error_handler&.call(method: method, exception: error, returning: returning)
          returning
        end

Defined in activesupport/lib/active_support/cache/deprecated_redis_cache_store.rb line 502 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::Cache::DeprecatedRedisCacheStore

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close