diff --git a/lib/spoom/cli/deadcode.rb b/lib/spoom/cli/deadcode.rb index 4901ee6d..c35cc04d 100644 --- a/lib/spoom/cli/deadcode.rb +++ b/lib/spoom/cli/deadcode.rb @@ -85,7 +85,7 @@ def deadcode(*paths) $stderr.puts "Indexing #{blue(files.size.to_s)} files..." files.each do |file| content = File.read(file) - content = ERB.new(content).src if file.end_with?(".erb") + content = Spoom::Deadcode::ERB.new(content).src if file.end_with?(".erb") tree = Spoom::Deadcode.parse_ruby(content, file: file) Spoom::Deadcode.index_node(index, tree, content, file: file, plugins: plugins)