Skip to content

A platform for community discussion. Free, open, simple.

FIX: method_profiler must require excon (#37152)

Michael Browne655798b3b98
diff --git a/lib/method_profiler.rb b/lib/method_profiler.rb
index 33acad54e7a..609824b28ec 100644
--- a/lib/method_profiler.rb
+++ b/lib/method_profiler.rb
@@ -1,5 +1,7 @@
# frozen_string_literal: true
+require "excon"
+
# see https://samsaffron.com/archive/2017/10/18/fastest-way-to-profile-a-method-in-ruby
class MethodProfiler
def self.patch(klass, methods, name, no_recurse: false)