summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2019-05-21 17:28:28 -0700
committerStan Hu <stanhu@gmail.com>2019-05-21 17:28:28 -0700
commit0ded86570c10d24ad4fff7e4fcd4b562bcd397fd (patch)
tree2a377df51f0a0624339b53756ed2d4bed9a68acb /lib
parentd6022e9deac732df62c2907fd43ae8646ffa43f7 (diff)
downloadgitlab-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.rb2
-rw-r--r--lib/haml_lint/linter/no_plain_nodes.rb2
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)