about summary refs log tree commit diff
path: root/app/controllers/admin/base_controller.rb
blob: 8593b582a68e73c70d09d1562190898303a23ce1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

module Admin
  class BaseController < ApplicationController
    include Authorization
    include AccountableConcern

    layout 'admin'

    before_action :require_staff!
    before_action :set_body_classes

    private

    def set_body_classes
      @body_classes = 'admin'
    end
  end
end