Class: Decidim::Meetings::Registration
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Decidim::Meetings::Registration
- Includes:
- DownloadYourData
- Defined in:
- app/models/decidim/meetings/registration.rb
Overview
The data store for a Registration in the Decidim::Meetings component.
Class Method Summary collapse
- .export_serializer ⇒ Object
- .user_collection(user) ⇒ Object
-
.user_group_ids ⇒ Object
Pluck all Decidim::UserGroup ID’s.
Instance Method Summary collapse
-
#validated? ⇒ Boolean
Public: Checks if the registration has been validated.
Class Method Details
.export_serializer ⇒ Object
25 26 27 |
# File 'app/models/decidim/meetings/registration.rb', line 25 def self.export_serializer Decidim::Meetings::DownloadYourDataRegistrationSerializer end |
.user_collection(user) ⇒ Object
21 22 23 |
# File 'app/models/decidim/meetings/registration.rb', line 21 def self.user_collection(user) where(decidim_user_id: user.id) end |
.user_group_ids ⇒ Object
Pluck all Decidim::UserGroup ID’s
30 31 32 |
# File 'app/models/decidim/meetings/registration.rb', line 30 def self.user_group_ids pluck(:decidim_user_group_id) end |
Instance Method Details
#validated? ⇒ Boolean
Public: Checks if the registration has been validated.
Returns Boolean.
37 38 39 |
# File 'app/models/decidim/meetings/registration.rb', line 37 def validated? validated_at? end |