Module: Decidim::AttachmentsHelper

Defined in:
app/helpers/decidim/attachments_helper.rb

Overview

A Helper to render and link to resources.

Instance Method Summary collapse

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.



11
12
13
# File 'app/helpers/decidim/attachments_helper.rb', line 11

def attachments_for(attached_to)
  render partial: "attachments", locals: { attached_to: attached_to }
end