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

View File

@ -18,7 +18,7 @@ module Public
def create def create
@event = Event.new event_params @event = Event.new event_params
@event.conference = current_conference @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 @event.participations.build participant: current_user, approved: true
if @event.save if @event.save