summaryrefslogtreecommitdiff
path: root/lib/ohai/mixin/constant_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ohai/mixin/constant_helper.rb')
-rw-r--r--lib/ohai/mixin/constant_helper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ohai/mixin/constant_helper.rb b/lib/ohai/mixin/constant_helper.rb
index af2f0a52..71a019af 100644
--- a/lib/ohai/mixin/constant_helper.rb
+++ b/lib/ohai/mixin/constant_helper.rb
@@ -34,6 +34,7 @@ module Ohai
if object.respond_to?(:constants)
object.constants.each do |const|
next unless strict_const_defined?(object, const)
+
recursive_remove_constants(object.const_get(const))
object.send(:remove_const, const)
end