Sha256: aafda5a8ee428fa30904077dc4300d2f3b78e2448c83935736284cbecc7da7a1
Contents?: true
Size: 677 Bytes
Versions: 20
Compression:
Stored size: 677 Bytes
Contents
# frozen-string_literal: true module Decidim module Proposals class CollaborativeDraftWithdrawnEvent < Decidim::Events::SimpleEvent i18n_attributes :author_nickname, :author_name, :author_path, :author_url delegate :nickname, :name, to: :author, prefix: true def nickname author_nickname end def author_path author.profile_path end def author_url author.profile_url end private def author @author ||= Decidim::UserPresenter.new(author_user) end def author_user @author_user ||= Decidim::User.find_by(id: extra[:author_id]) end end end end
Version data entries
20 entries across 20 versions & 1 rubygems