Class: Decidim::Meetings::Registration

Inherits:
ApplicationRecord show all
Includes:
DataPortability
Defined in:
decidim-meetings/app/models/decidim/meetings/registration.rb

Overview

The data store for a Registration in the Decidim::Meetings component.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.export_serializerObject


25
26
27
# File 'decidim-meetings/app/models/decidim/meetings/registration.rb', line 25

def self.export_serializer
  Decidim::Meetings::DataPortabilityRegistrationSerializer
end

.user_collection(user) ⇒ Object


21
22
23
# File 'decidim-meetings/app/models/decidim/meetings/registration.rb', line 21

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

.user_group_idsObject

Pluck all Decidim::UserGroup ID's


30
31
32
# File 'decidim-meetings/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.

Returns:

  • (Boolean)

37
38
39
# File 'decidim-meetings/app/models/decidim/meetings/registration.rb', line 37

def validated?
  validated_at?
end