Refactor admin/call_for_booth controller
This commit is contained in:
parent
6a8b9f8d2d
commit
a5ce1239f2
17 changed files with 182 additions and 18 deletions
21
app/controllers/admin/booths_controller.rb
Normal file
21
app/controllers/admin/booths_controller.rb
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
module Admin
|
||||
class Admin::BoothsController < Admin::BaseController
|
||||
load_and_authorize_resource :conference, find_by: :short_title
|
||||
load_and_authorize_resource :booth, through: :conference
|
||||
|
||||
def index
|
||||
@booths = @conference.booths
|
||||
end
|
||||
|
||||
def show; end
|
||||
|
||||
def new; end
|
||||
|
||||
def create; end
|
||||
|
||||
def update; end
|
||||
|
||||
def destroy; end
|
||||
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue