Class: Decidim::DummyAuthorizationHandler

Inherits:
AuthorizationHandler show all
Defined in:
decidim-dev/lib/decidim/dev/dummy_authorization_handler.rb

Overview

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

Instance Method Summary collapse

Methods inherited from AuthorizationHandler

#form_attributes, handler_for, handler_name, #handler_name, #to_partial_path

Methods inherited from Form

#available_locales

Instance Method Details

#metadataObject



13
14
15
# File 'decidim-dev/lib/decidim/dev/dummy_authorization_handler.rb', line 13

def 
  super.merge(document_number: document_number)
end

#unique_idObject



17
18
19
# File 'decidim-dev/lib/decidim/dev/dummy_authorization_handler.rb', line 17

def unique_id
  document_number
end