Class: Decidim::Meetings::Admin::ValidateRegistrationCodeForm

Inherits:
Form
  • Object
show all
Defined in:
app/forms/decidim/meetings/admin/validate_registration_code_form.rb

Overview

This class holds a Form to validate registration codes from Decidim’s admin panel.

Instance Method Summary collapse

Instance Method Details

#registrationObject



13
14
15
# File 'app/forms/decidim/meetings/admin/validate_registration_code_form.rb', line 13

def registration
  @registration ||= meeting.registrations.find_by(code:, validated_at: nil)
end