Optimize talk preferences export
Eager load all associated selected talks
This commit is contained in:
parent
11140e9bec
commit
b9ad36fa6b
|
@ -9,6 +9,6 @@ class HomeController < ApplicationController
|
|||
end
|
||||
|
||||
def export
|
||||
@talk_preferences = TalkPreference.this_years
|
||||
@talk_preferences = TalkPreference.this_years.eager_load(:selected_talks)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue