lib/leftovers/processors/demodulize.rb in leftovers-0.11.1 vs lib/leftovers/processors/demodulize.rb in leftovers-0.11.2

- old
+ new

@@ -13,12 +13,12 @@ def process(str, current_node, matched_node, acc) return unless str @then_processor.process(str.demodulize, current_node, matched_node, acc) - rescue NoMethodError - Leftovers.error <<~MESSAGE - Tried using the String#demodulize method, but the activesupport gem was not available and/or not required + rescue ::NoMethodError + ::Leftovers.error <<~MESSAGE + Tried using the ::String#demodulize method, but the activesupport gem was not available and/or not required `gem install activesupport`, and/or add `requires: ['active_support', 'active_support/core_ext/string']` to your .leftovers.yml MESSAGE end freeze