We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5fb02b commit 5a6b909Copy full SHA for 5a6b909
lib/extension_helper.rb
@@ -7,7 +7,7 @@ def self.allow_c_extensions?
7
8
# @!visibility private
9
def self.allow_c_native_class?(clazz)
10
- allow_c_extensions? && defined?(Kernel.const_get("Concurrent::#{clazz}"))
+ allow_c_extensions? && Concurrent.const_defined?(clazz)
11
rescue
12
false
13
end
0 commit comments