Event model improvements

- Drop selected_event_schedule function
- Rename scheduled_room and scheduled_start_time to room and time as If there is no selected_schedule, the event is not scheduled: selected_schedule_room and selected_schedule_time
This commit is contained in:
Ana 2016-08-01 21:25:12 +02:00
parent 47e316cddd
commit f65778b4fe
13 changed files with 32 additions and 35 deletions

View file

@ -15,7 +15,7 @@ class ProposalController < ApplicationController
def show
# FIXME: We should show more than the first speaker
@speaker = @event.speakers.first || @event.submitter
@event_schedule = @event.selected_event_schedule
@event_schedule = @event.event_schedules.find_by(schedule_id: @program.selected_schedule_id)
end
def new