Sha256: 4bacc879c04547642b350ed153a8f806fdba38e1b9a686b28e14162cf3c7008d

Contents?: true

Size: 275 Bytes

Versions: 18

Compression:

Stored size: 275 Bytes

Contents

module Eventboss
  module ErrorHandlers
    class DbConnectionDropHandler
      def call(exception, _context = {})
        if exception.class == ::ActiveRecord::StatementInvalid
          ::ActiveRecord::Base.clear_active_connections!
        end
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
eventboss-1.9.2 lib/eventboss/error_handlers/db_connection_drop_handler.rb
eventboss-1.9.1 lib/eventboss/error_handlers/db_connection_drop_handler.rb
eventboss-1.9.0 lib/eventboss/error_handlers/db_connection_drop_handler.rb
eventboss-1.8.1 lib/eventboss/error_handlers/db_connection_drop_handler.rb
eventboss-1.8.0 lib/eventboss/error_handlers/db_connection_drop_handler.rb
eventboss-1.7.0 lib/eventboss/error_handlers/db_connection_drop_handler.rb
eventboss-1.5.0 lib/eventboss/error_handlers/db_connection_drop_handler.rb
eventboss-1.4.1 lib/eventboss/error_handlers/db_connection_drop_handler.rb
eventboss-1.3.5 lib/eventboss/error_handlers/db_connection_drop_handler.rb
eventboss-1.3.4 lib/eventboss/error_handlers/db_connection_drop_handler.rb
eventboss-1.3.3 lib/eventboss/error_handlers/db_connection_drop_handler.rb
eventboss-1.3.2 lib/eventboss/error_handlers/db_connection_drop_handler.rb
eventboss-1.3.1 lib/eventboss/error_handlers/db_connection_drop_handler.rb
eventboss-1.3.0 lib/eventboss/error_handlers/db_connection_drop_handler.rb
eventboss-1.2.1 lib/eventboss/error_handlers/db_connection_drop_handler.rb
eventboss-1.2.0 lib/eventboss/error_handlers/db_connection_drop_handler.rb
eventboss-1.1.3 lib/eventboss/error_handlers/db_connection_drop_handler.rb
eventboss-1.1.2 lib/eventboss/error_handlers/db_connection_drop_handler.rb