Commit 29c0e30f authored by David Kim's avatar David Kim

Merge branch '326358-fix-warning-in-custom-generator-for-metrics-definition' into 'master'

Fix warnings in custom generator for metrics definition

See merge request gitlab-org/gitlab!60458
parents 766a4dd2 6e57b246
...@@ -84,6 +84,7 @@ module Gitlab ...@@ -84,6 +84,7 @@ module Gitlab
# Rake tasks ignore the eager loading settings, so we need to set the # Rake tasks ignore the eager loading settings, so we need to set the
# autoload paths explicitly # autoload paths explicitly
config.autoload_paths = config.eager_load_paths.dup config.autoload_paths = config.eager_load_paths.dup
config.autoload_paths.push("#{config.root}/lib/generators")
# Only load the plugins named here, in the order given (default is alphabetical). # Only load the plugins named here, in the order given (default is alphabetical).
# :all can be used as a placeholder for all plugins not explicitly named. # :all can be used as a placeholder for all plugins not explicitly named.
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails/generators' require 'rails/generators'
require_relative '../usage_metric_definition_generator'
module Gitlab module Gitlab
module UsageMetricDefinition module UsageMetricDefinition
......
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