debian-mirror-gitlab/app/controllers/admin/application_controller.rb
2019-12-04 20:38:33 +05:30

12 lines
364 B
Ruby

# 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')