Sha256: 3ca2bd7d9be4094726c355f83f7690f6b7a6331e947c1d142c4fa6e9cc718dd1
Contents?: true
Size: 723 Bytes
Versions: 29
Compression:
Stored size: 723 Bytes
Contents
# frozen_string_literal: true module Decidim module Accountability class ResultProgressUpdatedEvent < Decidim::Events::SimpleEvent i18n_attributes :proposal_title, :proposal_path, :progress def proposal_path @proposal_path ||= Decidim::ResourceLocatorPresenter.new(proposal).path end def proposal_title @proposal_title ||= translated_attribute(proposal.title) end def proposal @proposal ||= resource.linked_resources(:proposals, "included_proposals").find_by(id: extra[:proposal_id]) end def progress extra[:progress] end def resource_text translated_attribute(resource.description) end end end end
Version data entries
29 entries across 29 versions & 1 rubygems