From d2a606956cf089f82b3b5d5b3b8e9933c26da670 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Sat, 15 Aug 2015 17:03:08 +0300 Subject: [PATCH] Make sure the events create a proposition with an undecided status --- app/controllers/public/events_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/public/events_controller.rb b/app/controllers/public/events_controller.rb index e9eb415..ef40dbf 100644 --- a/app/controllers/public/events_controller.rb +++ b/app/controllers/public/events_controller.rb @@ -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