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

Version Path
decidim-core-0.4.4 app/helpers/decidim/attachments_helper.rb
decidim-core-0.4.2 app/helpers/decidim/attachments_helper.rb
decidim-core-0.4.1 app/helpers/decidim/attachments_helper.rb
decidim-core-0.4.3 app/helpers/decidim/attachments_helper.rb
decidim-core-0.4.0 app/helpers/decidim/attachments_helper.rb
decidim-core-0.3.2 app/helpers/decidim/attachments_helper.rb
decidim-core-0.3.1 app/helpers/decidim/attachments_helper.rb
decidim-core-0.3.0 app/helpers/decidim/attachments_helper.rb
decidim-core-0.2.0 app/helpers/decidim/attachments_helper.rb