Class: Decidim::Conferences::ConferenceRegistration
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- Decidim::Conferences::ConferenceRegistration
- Includes:
- DownloadYourData
- Defined in:
- app/models/decidim/conferences/conference_registration.rb
Overview
The data store for a Registration in the Decidim::Conferences component.
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.export_serializer ⇒ Object
21 22 23 |
# File 'app/models/decidim/conferences/conference_registration.rb', line 21 def self.export_serializer Decidim::Conferences::DownloadYourDataConferenceRegistrationSerializer end |
.log_presenter_class_for(_log) ⇒ Object
29 30 31 |
# File 'app/models/decidim/conferences/conference_registration.rb', line 29 def self.log_presenter_class_for(_log) Decidim::Conferences::AdminLog::ConferenceRegistrationPresenter end |
.user_collection(user) ⇒ Object
17 18 19 |
# File 'app/models/decidim/conferences/conference_registration.rb', line 17 def self.user_collection(user) where(decidim_user_id: user.id) end |
Instance Method Details
#confirmed? ⇒ Boolean
25 26 27 |
# File 'app/models/decidim/conferences/conference_registration.rb', line 25 def confirmed? confirmed_at.present? end |