Skip to content

Commit 5a6b909

Browse files
committed
Fixed buggy extension guard.
1 parent d5fb02b commit 5a6b909

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/extension_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def self.allow_c_extensions?
77

88
# @!visibility private
99
def self.allow_c_native_class?(clazz)
10-
allow_c_extensions? && defined?(Kernel.const_get("Concurrent::#{clazz}"))
10+
allow_c_extensions? && Concurrent.const_defined?(clazz)
1111
rescue
1212
false
1313
end

0 commit comments

Comments
 (0)