This repository has been archived on 2023-03-18. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
osr-discourse-src/app/controllers/admin/admin_controller.rb
T
Sam 41986cdb2f Refactor requires login logic, reduce duplicate code
This also corrects the positioning in the chain of the check
and removes misuse of prepend_before_action
2018-02-01 15:17:59 +11:00

11 lines
146 B
Ruby

class Admin::AdminController < ApplicationController
requires_login
before_action :ensure_staff
def index
render body: nil
end
end