Move abilities for admin views in separate model
This commit is contained in:
parent
ea43b19ef4
commit
366fced200
6 changed files with 676 additions and 572 deletions
|
|
@ -1,5 +1,5 @@
|
|||
module Admin
|
||||
class RegistrationPeriodsController < ApplicationController
|
||||
class RegistrationPeriodsController < Admin::BaseController
|
||||
load_and_authorize_resource :conference, find_by: :short_title
|
||||
load_and_authorize_resource through: :conference, singleton: true
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue