Class: Decidim::Conferences::Admin::ConferenceRegistrationInviteForm
- Inherits:
-
Form
- Object
- Form
- Decidim::Conferences::Admin::ConferenceRegistrationInviteForm
- Includes:
- TranslatableAttributes
- Defined in:
- app/forms/decidim/conferences/admin/conference_registration_invite_form.rb
Overview
A form object used to invite users to join a conference.
Instance Method Summary collapse
Instance Method Details
#registration_type ⇒ Object
25 26 27 |
# File 'app/forms/decidim/conferences/admin/conference_registration_invite_form.rb', line 25 def registration_type @registration_type ||= current_participatory_space.registration_types.find_by(id: registration_type_id) end |
#registration_types_for_select ⇒ Object
29 30 31 32 33 34 35 36 |
# File 'app/forms/decidim/conferences/admin/conference_registration_invite_form.rb', line 29 def registration_types_for_select @registration_types_for_select ||= current_participatory_space.registration_types&.map do |registration_type| [ translated_attribute(registration_type.title), registration_type.id ] end end |
#user ⇒ Object
21 22 23 |
# File 'app/forms/decidim/conferences/admin/conference_registration_invite_form.rb', line 21 def user @user ||= current_organization.users.find_by(id: user_id) end |