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 6663dd0969595786d2d2d94f05fc93642d103e18 1 parent c4d3102
@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.