Sha256: 053a2c179364af2fcf430a383ca6ffed30a23b33b037484412feb4ccd8a44f5b
Contents?: true
Size: 677 Bytes
Versions: 18
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
18 entries across 18 versions & 1 rubygems