Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #5188 from jlxw/patch-1

logger.silence is deprecated
  • Loading branch information...
commit c6bd8a9d3ac2ebd5d0af4573d6d799085ac2219b 2 parents f7a76aa + b16eb56
@spastorino spastorino authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.