Class: Decidim::Conferences::ConferenceRegistration

Inherits:
ApplicationRecord
  • Object
show all
Includes:
DataPortability
Defined in:
decidim-conferences/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_serializerObject


21
22
23
# File 'decidim-conferences/app/models/decidim/conferences/conference_registration.rb', line 21

def self.export_serializer
  Decidim::Conferences::DataPortabilityConferenceRegistrationSerializer
end

.log_presenter_class_for(_log) ⇒ Object


29
30
31
# File 'decidim-conferences/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 'decidim-conferences/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

Returns:

  • (Boolean)

25
26
27
# File 'decidim-conferences/app/models/decidim/conferences/conference_registration.rb', line 25

def confirmed?
  confirmed_at.present?
end