2018-09-14 01:42:05 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2012-09-16 07:44:54 -04:00
|
|
|
# Provides a base class for Admin controllers to subclass
|
|
|
|
#
|
|
|
|
# Automatically sets the layout and ensures an administrator is logged in
|
2013-01-20 06:20:50 -05:00
|
|
|
class Admin::ApplicationController < ApplicationController
|
2019-05-01 21:07:38 -04:00
|
|
|
include EnforcesAdminAuthentication
|
2012-09-16 07:44:54 -04:00
|
|
|
|
2019-05-01 21:07:38 -04:00
|
|
|
layout 'admin'
|
2012-09-16 07:44:54 -04:00
|
|
|
end
|
2019-09-13 09:26:31 -04:00
|
|
|
|
|
|
|
Admin::ApplicationController.prepend_if_ee('EE::Admin::ApplicationController')
|