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

@ -8,7 +8,7 @@ module Api
tracks = Track.all
else
tracks = Track.joins(:conference)
tracks = tracks.where("conferences.guid" => params[:conference_id])
tracks = tracks.where(conferences: { guid: params[:conference_id] })
end
respond_with tracks
end