parent
7793497862
commit
fedb0753bf
42 changed files with 578 additions and 236 deletions
|
|
@ -1,7 +1,7 @@
|
|||
class CommercialsController < ApplicationController
|
||||
load_and_authorize_resource :conference, find_by: :short_title
|
||||
load_resource :conference, find_by: :short_title
|
||||
before_action :set_event
|
||||
load_and_authorize_resource through: @event, except: [:new, :create]
|
||||
load_and_authorize_resource through: :event
|
||||
|
||||
def new
|
||||
@commercial = @event.commercials.build
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue