lib/skylight/probes/sinatra_add_middleware.rb in skylight-3.1.5 vs lib/skylight/probes/sinatra_add_middleware.rb in skylight-4.0.0.alpha
- old
+ new
@@ -2,13 +2,13 @@
module Probes
module Sinatra
class Probe
def install
class << ::Sinatra::Base
- alias build_without_sk build
+ alias_method :build_without_sk, :build
def build(*args, &block)
- self.use Skylight::Middleware
+ use Skylight::Middleware
build_without_sk(*args, &block)
end
end
end
end