Skip to content

Commit 830363a

Browse files
committed
Merge pull request #55688 from Shopify/drop-active-support-benchmar-extension
Do not issue `Benchmark.ms` deprecation when method exists in the gem
1 parent 09d468b commit 830363a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

activesupport/lib/active_support/core_ext/benchmark.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# frozen_string_literal: true
22

33
require "benchmark"
4+
return if Benchmark.respond_to?(:ms)
45

56
class << Benchmark
67
def ms(&block) # :nodoc

0 commit comments

Comments
 (0)