Optimize event query
This commit is contained in:
parent
646d61bb22
commit
0c936c3ff0
|
@ -2,7 +2,7 @@ module Management
|
||||||
class EventsController < ManagementController
|
class EventsController < ManagementController
|
||||||
def index
|
def index
|
||||||
@conference = find_conference
|
@conference = find_conference
|
||||||
@events = @conference.events.order(:title)
|
@events = @conference.events.order(:title).includes(:proposition, :proposer, :track, :event_type)
|
||||||
end
|
end
|
||||||
|
|
||||||
def show
|
def show
|
||||||
|
|
Loading…
Reference in New Issue