Class: AnotherDummyAuthorizationHandler
- Inherits:
-
Decidim::AuthorizationHandler
- Object
- Decidim::AttributeObject::Form
- Decidim::Form
- Decidim::AuthorizationHandler
- AnotherDummyAuthorizationHandler
- 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
Instance Method Summary collapse
Methods inherited from Decidim::AuthorizationHandler
#authorization_attributes, #duplicate, #form_attributes, handler_for, #handler_name, handler_name, #to_partial_path, #transferrable?, #unique?, #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
#metadata ⇒ Object
11 12 13 |
# File 'decidim-generators/lib/decidim/generators/app_templates/another_dummy_authorization_handler.rb', line 11 def super.merge(passport_number:, postal_code:) end |
#unique_id ⇒ Object
15 16 17 |
# File 'decidim-generators/lib/decidim/generators/app_templates/another_dummy_authorization_handler.rb', line 15 def unique_id passport_number end |