akkounts/app/controllers/admin/base_controller.rb
2023-03-01 17:08:24 +08:00

12 lines
226 B
Ruby

class Admin::BaseController < ApplicationController
include Pagy::Backend
before_action :authenticate_user!
before_action :authorize_admin
before_action :set_context
def set_context
@context = :admin
end
end