instance method
failsafe
Ruby on Rails 5.2.8.1
Since v5.2.8.1 PrivateSignature
failsafe(method, returning: nil)
No documentation comment.
Parameters
-
methodreq -
returningkey = nil
Source
# File activesupport/lib/active_support/cache/redis_cache_store.rb, line 450
def failsafe(method, returning: nil)
yield
rescue ::Redis::BaseConnectionError => e
handle_exception exception: e, method: method, returning: returning
returning
end
Defined in activesupport/lib/active_support/cache/redis_cache_store.rb line 450
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::RedisCacheStore