Sha256: c0c019da8001752045a21bbcd47761b4c02022bf53575762ae8e713428996062
Contents?: true
Size: 1.02 KB
Versions: 14
Compression:
Stored size: 1.02 KB
Contents
# frozen_string_literal: true module Decidim module Verifications module IdDocuments module Admin # # Handles rejections for verification by identity document upload. # class RejectionsController < Decidim::Admin::ApplicationController layout "decidim/admin/users" before_action :load_pending_authorization def create authorize! :update, @pending_authorization @form = InformationRejectionForm.from_model(@pending_authorization) PerformAuthorizationStep.call(@pending_authorization, @form) do on(:ok) do flash[:notice] = t("rejections.create.success", scope: "decidim.verifications.id_documents.admin") redirect_to root_path end end end private def load_pending_authorization @pending_authorization = Authorization.find(params[:pending_authorization_id]) end end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems