Fix Hakiri issues

This commit is contained in:
Chrisbr 2014-08-27 16:18:35 +02:00
parent e41fa41acf
commit c2a1ff1ffc
5 changed files with 9 additions and 7 deletions

View file

@ -3,7 +3,9 @@ class ScheduleController < ApplicationController
layout "application"
def index
@conference = Conference.includes(:rooms, events: [:speakers, :track, :event_type]).where("conferences.short_title" => params[:conference_id]).first
@conference = Conference.
includes(:rooms, events: [:speakers, :track, :event_type]).
where(conferences: { short_title: params[:conference_id] }).first
@rooms = @conference.rooms
@events = @conference.events
@dates = @conference.start_date..@conference.end_date