mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 02:39:37 +02:00
Use BaseController in admin
This commit is contained in:
parent
cee4c84edd
commit
a63b989cd6
36 changed files with 1265 additions and 1215 deletions
|
@ -1,7 +1,9 @@
|
|||
class Admin::DashboardsController < AdminController
|
||||
authorize_resource class: false
|
||||
module Admin
|
||||
class DashboardsController < BaseController
|
||||
authorize_resource class: false
|
||||
|
||||
def show
|
||||
redirect_to [:admin, :domains] if can? :show, Domain
|
||||
def show
|
||||
redirect_to [:admin, :domains] if can? :show, Domain
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue