Skip to content

Commit 0a77bb4

Browse files
rm155hsbt
authored andcommitted
Make compatible with Ruby 2.4
1 parent f31334a commit 0a77bb4

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)