Sha256: b965bee4c114a41d6ff1a77957e06883f16a0f69482fc1cdb8453b9bc692ea06
Contents?: true
Size: 725 Bytes
Versions: 7
Compression:
Stored size: 725 Bytes
Contents
# frozen-string_literal: true module Decidim module AccessRequests class AccessRequestConfirmedEvent < Decidim::Events::SimpleEvent delegate :url_helpers, to: "Decidim::Core::Engine.routes" i18n_attributes :verification_name def resource_url url_helpers.profile_url( user_nickname, host: user.organization.host ) end def resource_path url_helpers.profile_path(user_nickname) end def verification_name handler_name = extra.dig("handler_name") I18n.t("#{handler_name}.name", scope: "decidim.authorization_handlers") end def user_nickname extra.dig("user_nickname") end end end end
Version data entries
7 entries across 7 versions & 1 rubygems