From d732241b8df929a18f9d907b7d9dd9704fb16d67 Mon Sep 17 00:00:00 2001 From: Mauricio Giacomini Girardello <mauriciogiacomini4@gmail.com> Date: Tue, 3 Nov 2015 08:16:01 -0200 Subject: [PATCH] users contexts were overwriting class constructor, now all are fixed --- app/models/collections/user_private_context.rb | 2 +- app/models/collections/user_public_context.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/collections/user_private_context.rb b/app/models/collections/user_private_context.rb index fb60d7df4..4cc681741 100644 --- a/app/models/collections/user_private_context.rb +++ b/app/models/collections/user_private_context.rb @@ -3,7 +3,7 @@ # The PublicContext class specify all collections with field privacy=public class Collections::UserPrivateContext < Collections::UserContext - def initialize + def privacy @privacy = 'private' end diff --git a/app/models/collections/user_public_context.rb b/app/models/collections/user_public_context.rb index c5bb5d523..743875c98 100644 --- a/app/models/collections/user_public_context.rb +++ b/app/models/collections/user_public_context.rb @@ -3,7 +3,7 @@ # The PublicContext class specify all collections with field privacy=public class Collections::UserPublicContext < Collections::UserContext - def initialize + def privacy @privacy = 'public' end -- GitLab