instance method
failsafe
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
failsafe(method, returning: nil)
No documentation comment.
Parameters
-
methodreq -
returningkey = 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