Sha256: ecd42ca2e9d6b4a7c69e10a42c10357910b09eff3ca664b9c3cadc7f959c15d5
Contents?: true
Size: 520 Bytes
Versions: 56
Compression:
Stored size: 520 Bytes
Contents
# frozen-string_literal: true module Decidim class AttachmentCreatedEvent < Decidim::Events::SimpleEvent i18n_attributes :attached_to_url def resource_path @resource.url end def resource_url attached_to_url end def resource_text translated_attribute( resource.try(:description) || resource.try(:body) ) end private def attached_to_url resource_locator.url end def resource @resource.attached_to end end end
Version data entries
56 entries across 56 versions & 1 rubygems