1 parent
2b55fed1bc
commit
2709842d4d
6 files changed
+210
-14
No files matched your search
@@ -1,6 +1,6 @@
|
||||
class AdminController < ApplicationController
|
||||
layout 'admin'
|
||||
before_action :authorize_admin
|
||||
before_action :authorize_admin, except: :styleguide
|
||||
|
||||
def dashboard
|
||||
@quizzes = Quiz.includes(:questions).all
|
||||
|
||||
@@ -16,6 +16,10 @@ class ApplicationController < ActionController::Base
|
||||
end
|
||||
helper_method :current_candidate
|
||||
|
||||
def styleguide
|
||||
render '/styleguide'
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def auth_params
|
||||
|
||||
Reference in new issue
Block a user