Skip to content

Commit 0f00544

Browse files
rm155hsbt
authored andcommitted
[ruby/singleton] Make compatible with Ruby 2.4
ruby/singleton@0a77bb492d
1 parent 2f53c9f commit 0f00544

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/singleton.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def self.included(c)
156156

157157
def self.extended(c)
158158
# extending an object with Singleton is a bad idea
159-
c.singleton_class.undef_method :extend_object
159+
c.singleton_class.send(:undef_method, :extend_object)
160160
end
161161

162162
def __init__(klass) # :nodoc:

0 commit comments

Comments
 (0)