Skip to content
Browse files

logger.silence is deprecated

  • Loading branch information...
1 parent 5c0aba2 commit b16eb56280f704de0f1ea80f5ab850d9b17d70f8 @jlxw jlxw committed Feb 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/benchmarkable.rb
View
2 activesupport/lib/active_support/benchmarkable.rb
@@ -35,7 +35,7 @@ def benchmark(message = "Benchmarking", options = {})
options[:level] ||= :info
result = nil
- ms = Benchmark.ms { result = options[:silence] ? logger.silence { yield } : yield }
+ ms = Benchmark.ms { result = options[:silence] ? silence { yield } : yield }
logger.send(options[:level], '%s (%.1fms)' % [ message, ms ])
result
else

0 comments on commit b16eb56

Please sign in to comment.
Something went wrong with that request. Please try again.