Class: Decidim::Verifications::IdDocuments::Admin::OfflineConfirmationsController
- Inherits:
-
Admin::ApplicationController
- Object
- Admin::ApplicationController
- Decidim::Verifications::IdDocuments::Admin::OfflineConfirmationsController
- Includes:
- Admin::WorkflowsBreadcrumb
- Defined in:
- app/controllers/decidim/verifications/id_documents/admin/offline_confirmations_controller.rb
Overview
Handles confirmations for offline verification by identity document.
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
[View source]
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'app/controllers/decidim/verifications/id_documents/admin/offline_confirmations_controller.rb', line 23 def create :update, :authorization @form = form(OfflineConfirmationForm).from_params(params) ConfirmUserOfflineAuthorization.call(@form) do on(:ok) do flash[:notice] = t("offline_confirmations.create.success", scope: "decidim.verifications.id_documents.admin") redirect_to end on(:invalid) do flash.now[:alert] = t("offline_confirmations.create.error", scope: "decidim.verifications.id_documents.admin") render action: :new end end end |
#new ⇒ Object
[View source]
17 18 19 20 21 |
# File 'app/controllers/decidim/verifications/id_documents/admin/offline_confirmations_controller.rb', line 17 def new :update, :authorization @form = form(OfflineConfirmationForm).instance end |