From 2b8ec050747b3fbe2a9056065536d642716d1f06 Mon Sep 17 00:00:00 2001 From: Mateus Rambo Strey <mars11@inf.ufpr.br> Date: Tue, 3 Nov 2015 11:13:38 -0200 Subject: [PATCH] add user context to collections index --- app/controllers/collections_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/collections_controller.rb b/app/controllers/collections_controller.rb index 88ec4719..1eac1a77 100644 --- a/app/controllers/collections_controller.rb +++ b/app/controllers/collections_controller.rb @@ -6,7 +6,7 @@ class CollectionsController < ApplicationController # GET /collections.json def index if user_signed_in? - @collections = collection_repository.all Collections::UserPublicContext.new(current_user) + @collections = collection_repository.all Collections::UserContext.new(current_user) else @collections = collection_repository.all end -- GitLab