Class: DummyAgeAuthorizationHandler
- Inherits:
-
Decidim::AuthorizationHandler
- Object
- Decidim::AuthorizationHandler
- DummyAgeAuthorizationHandler
- Defined in:
- lib/decidim/kids/templates/dummy_age_authorization_handler.rb
Overview
An example authorization handler used so that users can be verified against third party systems.
This authorization is valid with any document ending in “X” It stores the birthday date so it can be used for untutelated minor’s checks
Instance Method Summary collapse
Instance Method Details
#metadata ⇒ Object
21 22 23 |
# File 'lib/decidim/kids/templates/dummy_age_authorization_handler.rb', line 21 def super.merge(document_number: document_number, birthday: birthday) end |
#unique_id ⇒ Object
17 18 19 |
# File 'lib/decidim/kids/templates/dummy_age_authorization_handler.rb', line 17 def unique_id document_number end |