lib/lookout/rack/utils.rb in lookout-rack-utils-1.7.1 vs lib/lookout/rack/utils.rb in lookout-rack-utils-1.7.2
- old
+ new
@@ -10,9 +10,11 @@
if RUBY_PLATFORM == 'java'
# This is required because YAML is messed up and incompatible with our version
# of Configatron under JRuby
module Psych
module Yecht
+ # Silence warnings about redefining constant
+ ::Psych::Yecht.send(:remove_const, :MergeKey) if Yecht.const_defined?(:MergeKey)
MergeKey = nil
end
end
end