lib/tracebin/middleware.rb in tracebin-0.0.10 vs lib/tracebin/middleware.rb in tracebin-0.0.11
- old
+ new
@@ -39,9 +39,11 @@
private
def fetch_endpoint_name(env)
if controller = env['action_controller.instance']
"#{controller.class}##{controller.params['action']}"
+ elsif route = env['sinatra.route']
+ route
else
'RackTransaction'
end
end