Sha256: 68b51022de20c2f424fe9d885ff0229a49fe868749d2c95e7f6a590bc678c9f0
Contents?: true
Size: 561 Bytes
Versions: 3
Compression:
Stored size: 561 Bytes
Contents
# frozen-string_literal: true module Decidim class FeaturePublishedEvent < Decidim::Events::SimpleEvent include Decidim::FeaturePathHelper i18n_attributes :participatory_space_title def resource_path @resource_path ||= main_feature_path(resource) end def resource_url @resource_url ||= main_feature_url(resource) end def participatory_space_title resource.participatory_space.title[I18n.locale.to_s] end def resource_title @resource_title ||= resource.name[I18n.locale.to_s] end end end
Version data entries
3 entries across 3 versions & 1 rubygems