diff --git a/app/models/collections/public_context.rb b/app/models/collections/public_context.rb index d7013b138c03ca65c2de1e9e5f942ad44bd4b641..67c73e55796cbad0e87aaba39624b65281aa51f8 100644 --- a/app/models/collections/public_context.rb +++ b/app/models/collections/public_context.rb @@ -1,7 +1,7 @@ ## # This class represents an specification for listing collections # The PublicContext class specify all collections with field privacy=public -class Collections::PublicContext < Collections::Context +class Collections::PublicContext < Context def from 'Collection' diff --git a/app/models/collections/user_context.rb b/app/models/collections/user_context.rb index 5c70f92c5fa2e51b3f10b88252b5961bbc4478f1..13dbf50e65d87747d7db0607ec6e817ff3609c23 100644 --- a/app/models/collections/user_context.rb +++ b/app/models/collections/user_context.rb @@ -1,4 +1,4 @@ -class UserContext < Collections::Context +class UserContext < Context def initialize(user) @user = user diff --git a/app/models/collections/user_private_context.rb b/app/models/collections/user_private_context.rb index 3b6b8534507b2bbeccd6cfd7bed67d1b0db40d40..970528cee50df3bf07ac45796ee534cfe7f017aa 100644 --- a/app/models/collections/user_private_context.rb +++ b/app/models/collections/user_private_context.rb @@ -1,7 +1,7 @@ ## # This class represents an specification for listing collections # The PublicContext class specify all collections with field privacy=public -class Collections::UserPrivateContext < Collections::UserContext +class Collections::UserPrivateContext < UserContext def privacy 'private' diff --git a/app/models/collections/user_public_context.rb b/app/models/collections/user_public_context.rb index f1612eb052fe41674c2d51a013516f1187b5d2a0..ff40143951b3f25285471474a8691d4e10fa7e78 100644 --- a/app/models/collections/user_public_context.rb +++ b/app/models/collections/user_public_context.rb @@ -1,7 +1,7 @@ ## # This class represents an specification for listing collections # The PublicContext class specify all collections with field privacy=public -class Collections::UserPublicContext < Collections::UserContext +class Collections::UserPublicContext < UserContext def privacy 'public'