Sha256: 06cc72d332d7926d2b637a9dcb224086d114e697b9b4ace17a343dd353791985
Contents?: true
Size: 430 Bytes
Versions: 1
Compression:
Stored size: 430 Bytes
Contents
::Sinatra::Base.class_eval do alias_method :dispatch_without_vizsla!, :dispatch! def dispatch!(*args, &block) start_time = Time.now result = dispatch_without_vizsla!(*args, *block) end_time = Time.now route = env['sinatra.route'] event_data = [ 'sinatra.route_exec', start_time, end_time, route ] ::Vizsla::Patches.handle_event :sinatra, event_data result end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tracebin-0.0.7 | lib/vizsla/patches/sinatra.rb |