dashboard controller
This commit is contained in:
1 parent
4a70b795e5
commit
7774a1e3f2
13 files changed
+94
-76
No files matched your search
@@ -0,0 +1,10 @@
|
||||
# frozen_string_literal: true
|
||||
module Admin
|
||||
class DashboardController < AdminController
|
||||
def show
|
||||
authorize :dashboard
|
||||
@quizzes = policy_scope Quiz.includes(:questions).all
|
||||
@users = policy_scope User.order(:role, :name)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user