Sha256: b4f982dd9b24adad15571b4bfc32942379a3535b2c89370c0e5161f631ccbd26
Contents?: true
Size: 436 Bytes
Versions: 9
Compression:
Stored size: 436 Bytes
Contents
# frozen_string_literal: true module Decidim # A Helper to render and link to resources. module AttachmentsHelper # Renders a the attachments of a model that includes the # HasAttachments concern. # # attached_to - The model to render the attachments from. # # Returns nothing. def attachments_for(attached_to) render partial: "attachments", locals: { attached_to: attached_to } end end end
Version data entries
9 entries across 9 versions & 1 rubygems