From 7c6a9c6b0cb47579e545f83c71fd75e1a029c745 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Sat, 29 Nov 2008 21:14:31 -0800 Subject: [PATCH] Include measure mode in calltree file name --- lib/action_profiler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/action_profiler.rb b/lib/action_profiler.rb index 4fc8f3d..05c80e9 100644 --- a/lib/action_profiler.rb +++ b/lib/action_profiler.rb @@ -23,7 +23,7 @@ def action_profiler(&block) response.headers['Content-Length'] = response.body.size response.headers['Content-Type'] = 'application/octet-stream' - response.headers['Content-Disposition'] = %(attachment; filename="#{File.basename(request.path)}.tree") + response.headers['Content-Disposition'] = %(attachment; filename="#{File.basename(request.path)}.#{mode}.tree") end else yield