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

Small fix

parent f36c8d2e
No related branches found
No related tags found
No related merge requests found
......@@ -121,10 +121,11 @@ class CollectionsController < ApplicationController
@groups = [
CollectionsGroup.new(title: 'Coleções Automáticas',
collections: [current_user.bookmarks]),
collections: [current_user.bookmarks.first]),
CollectionsGroup.new(title: 'Coleções Adicionadas',
collections: current_user.collections)
]
end
# POST /collections/1/learning_object
......
......@@ -13,7 +13,7 @@ class UsersController < ApplicationController
if @user == current_user
@publishers = @user.institutions
@bookmarks = @user.bookmarks
@bookmarks = @user.bookmarks.first
@groups.unshift(CollectionsGroup.new(title: 'Coleções Automáticas', collections: [@bookmarks]))
end
end
......
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