method
failsafe
v6.0.0 -
Show latest stable
- Class:
ActiveSupport::Cache::RedisCacheStore
failsafe(method, returning: nil)private
No documentation available.
# File activesupport/lib/active_support/cache/redis_cache_store.rb, line 472
def failsafe(method, returning: nil)
yield
rescue ::Redis::BaseConnectionError => e
handle_exception exception: e, method: method, returning: returning
returning
end