Class: Radar::Integration::Sinatra

Inherits:
Object
  • Object
show all
Defined in:
lib/radar/integration/sinatra.rb

Overview

Allows drop-in integration with Sinatra for Radar. This class should not ever actually be used Application#integrate. Instead, use the middlware provided by Rack::Radar.

Radar::Application.new(:app) do |app|
  # configure...
end

class MyApp < Sinatra::Base
  use Rack::Radar, :application => Radar[:app]
end

Class Method Summary collapse

Class Method Details

.integrate!(app) ⇒ Object



16
17
18
# File 'lib/radar/integration/sinatra.rb', line 16

def self.integrate!(app)
  raise "To enable Sinatra integration, please use `Rack::Radar` middleware instead. View the user guide for more information."
end