Change Conference#show to load sponsors

Caching on sponsorship levels alone is not changing; as a bonus the sponsor
modals are simplified a little.
This commit is contained in:
James Mason 2018-01-17 17:03:23 -08:00
parent 82d8629e43
commit 63515cef58
3 changed files with 5 additions and 3 deletions

View file

@ -55,6 +55,7 @@ class ConferencesController < ApplicationController
@sponsorship_levels = @conference.sponsorship_levels.eager_load(
:sponsors
).order('sponsorship_levels.position ASC', 'sponsors.name')
@sponsors = @conference.sponsors
end
end