Class HoptoadNotifier::Rack
In: lib/hoptoad_notifier/rack.rb
Parent: Object

Middleware for Rack applications. Any errors raised by the upstream application will be delivered to Hoptoad and re-raised.

Synopsis:

  require 'rack'
  require 'hoptoad_notifier'

  HoptoadNotifier.configure do |config|
    config.api_key = 'my_api_key'
  end

  app = Rack::Builder.app do
    use HoptoadNotifier::Rack
    run lambda { |env| raise "Rack down" }
  end

Use a standard HoptoadNotifier.configure call to configure your api key.

Methods

call   new  

Public Class methods

Public Instance methods

[Validate]