Optimize event query

This commit is contained in:
Petko Bordjukov 2015-10-15 19:12:56 +03:00
parent 646d61bb22
commit 0c936c3ff0
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ module Management
class EventsController < ManagementController
def index
@conference = find_conference
@events = @conference.events.order(:title)
@events = @conference.events.order(:title).includes(:proposition, :proposer, :track, :event_type)
end
def show