Sha256: 4a8281fee6270580086a940ca0dc22e29688f7b384043a262097f05004579f50
Contents?: true
Size: 560 Bytes
Versions: 13
Compression:
Stored size: 560 Bytes
Contents
# frozen-string_literal: true module Decidim class ChangeNicknameEvent < Decidim::Events::SimpleEvent include Decidim::Events::NotificationEvent 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
13 entries across 13 versions & 1 rubygems