Class: AnotherDummyAuthorizationHandler

Inherits:
Decidim::AuthorizationHandler
  • Object
show all
Defined in:
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

Instance Method Details

#metadataObject



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

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

#unique_idObject



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

def unique_id
  passport_number
end