Skip to content
Snippets Groups Projects
Commit 04ae276a authored by Robert Speicher's avatar Robert Speicher
Browse files

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
No related branches found
No related tags found
No related merge requests found
   
require 'gitlab/email/handler' require_dependency 'gitlab/email/handler'
   
# Inspired in great part by Discourse's Email::Receiver # Inspired in great part by Discourse's Email::Receiver
module Gitlab module Gitlab
Loading
Loading
require 'ruby-prof' require 'ruby-prof'
require 'gitlab/request_profiler' require_dependency 'gitlab/request_profiler'
   
module Gitlab module Gitlab
module RequestProfiler module RequestProfiler
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment