From 0f00544984f0b2b7fefc7d9039b206f9415fd371 Mon Sep 17 00:00:00 2001 From: rm155 Date: Mon, 8 Nov 2021 13:59:38 -0500 Subject: [PATCH] [ruby/singleton] Make compatible with Ruby 2.4 https://github.com/ruby/singleton/commit/0a77bb492d --- lib/singleton.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/singleton.rb b/lib/singleton.rb index 0120f05957..afe669e06d 100644 --- a/lib/singleton.rb +++ b/lib/singleton.rb @@ -156,7 +156,7 @@ module Singleton def self.extended(c) # extending an object with Singleton is a bad idea - c.singleton_class.undef_method :extend_object + c.singleton_class.send(:undef_method, :extend_object) end def __init__(klass) # :nodoc: