Method: Atatus::Spies::SinatraSpy::Ext#dispatch!
- Defined in:
- lib/atatus/spies/sinatra.rb
#dispatch!(*args, &block) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
27 28 29 30 31 32 33 34 |
# File 'lib/atatus/spies/sinatra.rb', line 27 def dispatch!(*args, &block) super(*args, &block).tap do next unless (transaction = Atatus.current_transaction) next unless (route = env['sinatra.route']) transaction.name = route end end |