module Semian::Rails::ClassMethods
def new_client(config)
cause if applicable. When we have a CircuitOpenErorr we don't
Translate ConnectionNotEstablished errors to their original
def new_client(config) super rescue ActiveRecord::ConnectionNotEstablished => e if e.cause.is_a?(Mysql2::CircuitOpenError) raise e.cause else raise end end