Class: Decidim::DummyAuthorizationHandler

Inherits:
AuthorizationHandler show all
Defined in:
app/services/decidim/dummy_authorization_handler.rb

Overview

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

Defined Under Namespace

Classes: ActionAuthorizer

Instance Method Summary collapse

Methods inherited from AuthorizationHandler

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

Instance Method Details

#metadataObject



13
14
15
# File 'app/services/decidim/dummy_authorization_handler.rb', line 13

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

#unique_idObject



17
18
19
# File 'app/services/decidim/dummy_authorization_handler.rb', line 17

def unique_id
  document_number
end