Commit 0ded8657 authored by Stan Hu's avatar Stan Hu

Fix uninitialized constant with HamlLint::LinterRegistry

The migration pod for the GitLab Helm Chart was failing because
of the NameError:

uninitialized constant HamlLint::Linter::NoPlainNodes::LinterRegistry

We now explicitly specify ::HamlLint::LinterRegistry to avoid resolution
errors.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/62125
parent d6022e9d
...@@ -7,7 +7,7 @@ unless Rails.env.production? ...@@ -7,7 +7,7 @@ unless Rails.env.production?
module HamlLint module HamlLint
class Linter::InlineJavaScript < Linter class Linter::InlineJavaScript < Linter
include LinterRegistry include ::HamlLint::LinterRegistry
def visit_filter(node) def visit_filter(node)
return unless node.filter_type == 'javascript' return unless node.filter_type == 'javascript'
......
...@@ -5,7 +5,7 @@ require 'active_support/core_ext/array/grouping' ...@@ -5,7 +5,7 @@ require 'active_support/core_ext/array/grouping'
module HamlLint module HamlLint
class Linter class Linter
class NoPlainNodes < Linter class NoPlainNodes < Linter
include LinterRegistry include ::HamlLint::LinterRegistry
def visit_tag(node) def visit_tag(node)
if inline_plain_node?(node) if inline_plain_node?(node)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment