method
failsafe
v6.1.7.7 -
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 477
def failsafe(method, returning: nil)
yield
rescue ::Redis::BaseError => e
handle_exception exception: e, method: method, returning: returning
returning
end