diff --git a/app/controllers/collections_controller.rb b/app/controllers/collections_controller.rb index e94d2d77a5ebf90dbfe9df992481e688fd8e28f7..5d931849a8ec131f23463a27a456056504f725d1 100644 --- a/app/controllers/collections_controller.rb +++ b/app/controllers/collections_controller.rb @@ -123,7 +123,7 @@ class CollectionsController < ApplicationController CollectionsGroup.new(title: 'Coleções Automáticas', collections: [current_user.bookmarks]), CollectionsGroup.new(title: 'Coleções Adicionadas', - collections: current_user.collections) + collections: current_user.collections.includes(:owner)) ] end diff --git a/app/controllers/welcome_controller.rb b/app/controllers/welcome_controller.rb index b6525ea838968502a0ad57c79ceb44dc2d4dfc58..76cec1c4a9799986bdab34cae8c97385aeed9322 100644 --- a/app/controllers/welcome_controller.rb +++ b/app/controllers/welcome_controller.rb @@ -3,7 +3,7 @@ class WelcomeController < ApplicationController def index @carousel = Carousel.all || [] - @highlights = policy_scope(LearningObject).limit(8) + @highlights = policy_scope(LearningObject).limit(8).includes(:publisher, :language) end def faq