Class: Decidim::ParticipatorySpacePrivateUser

Inherits:
ApplicationRecord show all
Includes:
DownloadYourData
Defined in:
app/models/decidim/participatory_space_private_user.rb

Overview

This class gives a given User access to a given private ParticipatorySpacePrivateUser

Class Method Summary collapse

Class Method Details

.export_serializerObject



19
20
21
# File 'app/models/decidim/participatory_space_private_user.rb', line 19

def self.export_serializer
  Decidim::DownloadYourDataSerializers::DownloadYourDataParticipatorySpacePrivateUserSerializer
end

.log_presenter_class_for(_log) ⇒ Object



23
24
25
# File 'app/models/decidim/participatory_space_private_user.rb', line 23

def self.log_presenter_class_for(_log)
  Decidim::AdminLog::ParticipatorySpacePrivateUserPresenter
end

.user_collection(user) ⇒ Object



15
16
17
# File 'app/models/decidim/participatory_space_private_user.rb', line 15

def self.user_collection(user)
  where(decidim_user_id: user.id)
end