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:
parent
82d8629e43
commit
63515cef58
3 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue