Sha256: c7d3a69af9281bc41f3b19c86833f92d1d9ea33ca30e383061aa8816537fdfcd
Contents?: true
Size: 513 Bytes
Versions: 10
Compression:
Stored size: 513 Bytes
Contents
# frozen_string_literal: true module Decidim class ChangeNicknameEvent < Decidim::Events::SimpleEvent delegate :organization, to: :user, prefix: false delegate :url_helpers, to: "Decidim::Core::Engine.routes" i18n_attributes :link_to_account_settings def notification_title I18n.t("decidim.events.nickname_event.notification_body", **i18n_options).to_s.html_safe end def i18n_options { link_to_account_settings: url_helpers.account_path } end end end
Version data entries
10 entries across 10 versions & 1 rubygems