aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2008-04-30 15:00:15 -0500
committerDavid Heinemeier Hansson <david@loudthinking.com>2008-04-30 15:00:15 -0500
commitd327496ab7499d7000f4a6c57173219a8738bed0 (patch)
treebd93b977bc6971f5859fc9120279803688a8a66b /actionpack/lib/action_view
parent56861af7339559dd66a9cf38150fc2a2d0c9931c (diff)
downloadrails-d327496ab7499d7000f4a6c57173219a8738bed0.tar.gz
rails-d327496ab7499d7000f4a6c57173219a8738bed0.tar.bz2
rails-d327496ab7499d7000f4a6c57173219a8738bed0.zip
Fixed tests (and the weird assumption that no logger would mean that the code wasnt run)
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r--actionpack/lib/action_view/helpers/benchmark_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/benchmark_helper.rb b/actionpack/lib/action_view/helpers/benchmark_helper.rb
index c278a38f25..743d1d40ec 100644
--- a/actionpack/lib/action_view/helpers/benchmark_helper.rb
+++ b/actionpack/lib/action_view/helpers/benchmark_helper.rb
@@ -23,7 +23,7 @@ module ActionView
def benchmark(message = "Benchmarking", level = :info)
if controller.logger
real = Benchmark.realtime { yield }
- controller.logger.send level, "#{message} (#{'%.5f' % real})"
+ controller.logger.send(level, "#{message} (#{'%.5f' % real})")
else
yield
end