Make sure the events create a proposition with an undecided status
This commit is contained in:
parent
d4bf6a3a3a
commit
d2a606956c
|
@ -18,7 +18,7 @@ module Public
|
|||
def create
|
||||
@event = Event.new event_params
|
||||
@event.conference = current_conference
|
||||
@event.build_proposition proposer: current_user
|
||||
@event.build_proposition proposer: current_user, status: :undecided
|
||||
@event.participations.build participant: current_user, approved: true
|
||||
|
||||
if @event.save
|
||||
|
|
Loading…
Reference in New Issue