debian-mirror-gitlab/app/controllers/admin/application_controller.rb

13 lines
363 B
Ruby
Raw Normal View History

2018-12-05 23:21:45 +05:30
# frozen_string_literal: true
2014-09-02 18:07:02 +05:30
# Provides a base class for Admin controllers to subclass
#
# Automatically sets the layout and ensures an administrator is logged in
class Admin::ApplicationController < ApplicationController
2019-07-31 22:56:46 +05:30
include EnforcesAdminAuthentication
2014-09-02 18:07:02 +05:30
2019-07-31 22:56:46 +05:30
layout 'admin'
2014-09-02 18:07:02 +05:30
end
2019-12-04 20:38:33 +05:30
2021-06-08 01:23:25 +05:30
Admin::ApplicationController.prepend_mod_with('Admin::ApplicationController')