Skip to content
Snippets Groups Projects
Commit 5eb9c7cc authored by Giovanne Marcelo's avatar Giovanne Marcelo
Browse files

Fixing welcome and collections include

parent 6a274c04
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment