Make sure the events create a proposition with an undecided status

This commit is contained in:
Petko Bordjukov 2015-08-15 17:03:08 +03:00
parent d4bf6a3a3a
commit d2a606956c
1 changed files with 1 additions and 1 deletions

View File

@ -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