Class: AnotherDummyAuthorizationHandler

Inherits:
Decidim::AuthorizationHandler show all
Defined in:
decidim-generators/lib/decidim/generators/app_templates/another_dummy_authorization_handler.rb

Overview

An example implementation of an AuthorizationHandler to be used in tests.

Instance Method Summary collapse

Methods inherited from Decidim::AuthorizationHandler

#form_attributes, handler_for, handler_name, #handler_name, #to_partial_path, #verification_attachment, #verification_metadata

Instance Method Details

#metadataObject


11
12
13
# File 'decidim-generators/lib/decidim/generators/app_templates/another_dummy_authorization_handler.rb', line 11

def 
  super.merge(passport_number: passport_number, postal_code: postal_code)
end

#unique_idObject


15
16
17
# File 'decidim-generators/lib/decidim/generators/app_templates/another_dummy_authorization_handler.rb', line 15

def unique_id
  passport_number
end