diff options
author | Stan Hu <stanhu@gmail.com> | 2019-05-21 17:28:28 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-05-21 17:28:28 -0700 |
commit | 0ded86570c10d24ad4fff7e4fcd4b562bcd397fd (patch) | |
tree | 2a377df51f0a0624339b53756ed2d4bed9a68acb /lib | |
parent | d6022e9deac732df62c2907fd43ae8646ffa43f7 (diff) | |
download | gitlab-ce-0ded86570c10d24ad4fff7e4fcd4b562bcd397fd.tar.gz |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/haml_lint/inline_javascript.rb | 2 | ||||
-rw-r--r-- | lib/haml_lint/linter/no_plain_nodes.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/haml_lint/inline_javascript.rb b/lib/haml_lint/inline_javascript.rb index 1b17162f71d..da6af92e82b 100644 --- a/lib/haml_lint/inline_javascript.rb +++ b/lib/haml_lint/inline_javascript.rb @@ -7,7 +7,7 @@ unless Rails.env.production? module HamlLint class Linter::InlineJavaScript < Linter - include LinterRegistry + include ::HamlLint::LinterRegistry def visit_filter(node) return unless node.filter_type == 'javascript' diff --git a/lib/haml_lint/linter/no_plain_nodes.rb b/lib/haml_lint/linter/no_plain_nodes.rb index d5cea0d07cf..c39f61fa80d 100644 --- a/lib/haml_lint/linter/no_plain_nodes.rb +++ b/lib/haml_lint/linter/no_plain_nodes.rb @@ -5,7 +5,7 @@ require 'active_support/core_ext/array/grouping' module HamlLint class Linter class NoPlainNodes < Linter - include LinterRegistry + include ::HamlLint::LinterRegistry def visit_tag(node) if inline_plain_node?(node) |