Commit 6349f0d3 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Move Authenticates2FAForAdminMode concern

This moves the file to app/controllers/concerns because
admin/concerns isn't a top-level autoload path so we need the
Concern:: namespace if we want it there

Since we also use this in
app/controllers/omniauth_callbacks_controller.rb, I think it'
better to just move instead of changing the namespace
parent 3c6853ef
......@@ -15,6 +15,7 @@ Rails.autoloaders.each do |autoloader|
autoloader.ignore(Rails.root.join('lib/gitlab/graphql/docs'))
autoloader.inflector.inflect(
'authenticates_2fa_for_admin_mode' => 'Authenticates2FAForAdminMode',
'api' => 'API',
'api_guard' => 'APIGuard',
'group_api_compatibility' => 'GroupAPICompatibility',
......
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