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
      24 25 26  | 
    
      # File 'app/forms/decidim/conferences/admin/conference_registration_invite_form.rb', line 24 def registration_type @registration_type ||= current_participatory_space.registration_types.find_by(id: registration_type_id) end  | 
  
#registration_types_for_select ⇒ Object
      28 29 30 31 32 33 34 35  | 
    
      # File 'app/forms/decidim/conferences/admin/conference_registration_invite_form.rb', line 28 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
      20 21 22  | 
    
      # File 'app/forms/decidim/conferences/admin/conference_registration_invite_form.rb', line 20 def user @user ||= current_organization.users.find_by(id: user_id) end  |