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.

Constant Summary

Constants included from Decidim::AttributeObject::TypeMap

Decidim::AttributeObject::TypeMap::Boolean, Decidim::AttributeObject::TypeMap::Decimal

Instance Attribute Summary

Attributes inherited from Decidim::AttributeObject::Form

#context

Instance Method Summary collapse

Methods inherited from Decidim::AuthorizationHandler

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

Methods inherited from Decidim::AttributeObject::Form

ensure_hash, from_model, from_params, hash_from, infer_model_name, #map_model, mimic, mimicked_model_name, model_name, #persisted?, #to_key, #to_model, #to_param, #valid?, #with_context

Methods included from Decidim::AttributeObject::Model

#[], #[]=, #attributes, #attributes_with_values, #initialize, #to_h

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