Optimize event query
This commit is contained in:
parent
646d61bb22
commit
0c936c3ff0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue