Class: Decidim::Initiatives::LegacySignatureHandler
- Inherits:
-
SignatureHandler
- Object
- Form
- SignatureHandler
- Decidim::Initiatives::LegacySignatureHandler
- Defined in:
- app/services/decidim/initiatives/legacy_signature_handler.rb
Overview
Signature handler which reproduces the old feature of ‘collect_personal_data` of initiative types. The handler will collect the name and surname, the document number and the date of birth
Instance Method Summary collapse
Methods inherited from SignatureHandler
#already_voted?, #authorization_handler, #authorization_handler_params, #authorized_scopes, #encrypted_metadata, #form_attributes, #hash_id, requires_extra_attributes?, #signature_scope_candidates, #signature_scope_id, #signature_workflow_name, #to_partial_path, #user_signature_scope
Instance Method Details
#metadata ⇒ Object
20 21 22 |
# File 'app/services/decidim/initiatives/legacy_signature_handler.rb', line 20 def super.merge(name_and_surname:, document_number:, date_of_birth:, postal_code:) end |
#unique_id ⇒ Object
16 17 18 |
# File 'app/services/decidim/initiatives/legacy_signature_handler.rb', line 16 def unique_id document_number end |