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 e3b83e8ec1
commit ad4c4d391f
No known key found for this signature in database
GPG key ID: 1B3951886C449023
3 changed files with 5 additions and 3 deletions

View file

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