Welcome to mirror list, hosted at ThFree Co, Russian Federation.

application_controller.rb « admin « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 956e03cef070815c3db3087b847d8ab75470b2b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

# Provides a base class for Admin controllers to subclass
#
# Automatically sets the layout and ensures an administrator is logged in
class Admin::ApplicationController < ApplicationController
  include EnforcesAdminAuthentication

  layout 'admin'
end

Admin::ApplicationController.prepend_if_ee('EE::Admin::ApplicationController')