class Eventboss::ErrorHandlers::DbConnectionNotEstablishedHandler

Public Instance Methods

call(exception, _context = {}) click to toggle source
# File lib/eventboss/error_handlers/db_connection_not_established_handler.rb, line 4
def call(exception, _context = {})
  if exception.class == ::ActiveRecord::ConnectionNotEstablished
    ::ActiveRecord::Base.connection.reconnect!
  end
end