Class: Decidim::ParticipatorySpacePrivateUser
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Decidim::ParticipatorySpacePrivateUser
- Includes:
- DataPortability
- 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_serializer ⇒ Object
17 18 19 |
# File 'app/models/decidim/participatory_space_private_user.rb', line 17 def self.export_serializer Decidim::DataPortabilitySerializers::DataPortabilityParticipatorySpacePrivateUserSerializer end |
.log_presenter_class_for(_log) ⇒ Object
21 22 23 |
# File 'app/models/decidim/participatory_space_private_user.rb', line 21 def self.log_presenter_class_for(_log) Decidim::AdminLog::ParticipatorySpacePrivateUserPresenter end |
.user_collection(user) ⇒ Object
13 14 15 |
# File 'app/models/decidim/participatory_space_private_user.rb', line 13 def self.user_collection(user) where(decidim_user_id: user.id) end |