Commit 04ae276a authored by Robert Speicher's avatar Robert Speicher

Merge branch 'avoid-constant-warnings-in-rails' into 'master'

Rails prefers require_dependency so that it won't require twice:

## What does this MR do?

Fix warnings for loading constants twice

## Are there points in the code the reviewer needs to double check?

Now it's depending on `require_dependency`.

## Why was this MR needed?

Fixes #20724

Backtrace before this patch: $23876

See merge request !5727
parents 11a60096 ec298011
require 'gitlab/email/handler'
require_dependency 'gitlab/email/handler'
# Inspired in great part by Discourse's Email::Receiver
module Gitlab
......
require 'ruby-prof'
require 'gitlab/request_profiler'
require_dependency 'gitlab/request_profiler'
module Gitlab
module RequestProfiler
......
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