Module: Decidim::AttachmentsHelper
- Defined in:
- app/helpers/decidim/attachments_helper.rb
Overview
A Helper to render and link to resources.
Instance Method Summary collapse
-
#attachments_for(attached_to) ⇒ Object
Renders a the attachments of a model that includes the HasAttachments concern.
Instance Method Details
#attachments_for(attached_to) ⇒ Object
Renders a the attachments of a model that includes the HasAttachments concern.
attached_to - The model to render the attachments from.
Returns nothing.
12 13 14 |
# File 'app/helpers/decidim/attachments_helper.rb', line 12 def (attached_to) render partial: "attachments", locals: { attached_to: attached_to } end |