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

Inherits:
Form
  • Object
show all
Defined in:
decidim-meetings/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 'decidim-meetings/app/forms/decidim/meetings/admin/validate_registration_code_form.rb', line 13

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