Sha256: 8c576ea298a2fb1165b62e184a54740cc4fe5273b364e52896ccce56b970741d

Contents?: true

Size: 477 Bytes

Versions: 88

Compression:

Stored size: 477 Bytes

Contents

# frozen_string_literal: true

require "active_support/concern"

module Decidim
  # A concern with the components needed when you want a model to be able to create
  # links from it to another resource.
  module HasAttachmentCollections
    extend ActiveSupport::Concern

    included do
      has_many :attachment_collections,
               class_name: "Decidim::AttachmentCollection",
               dependent: :destroy,
               as: :collection_for
    end
  end
end

Version data entries

88 entries across 88 versions & 1 rubygems

Version Path
decidim-core-0.29.1 lib/decidim/has_attachment_collections.rb
decidim-core-0.28.4 lib/decidim/has_attachment_collections.rb
decidim-core-0.27.9 lib/decidim/has_attachment_collections.rb
decidim-core-0.29.0 lib/decidim/has_attachment_collections.rb
decidim-core-0.28.3 lib/decidim/has_attachment_collections.rb
decidim-core-0.27.8 lib/decidim/has_attachment_collections.rb
decidim-core-0.29.0.rc4 lib/decidim/has_attachment_collections.rb
decidim-core-0.29.0.rc3 lib/decidim/has_attachment_collections.rb
decidim-core-0.29.0.rc2 lib/decidim/has_attachment_collections.rb
decidim-core-0.29.0.rc1 lib/decidim/has_attachment_collections.rb
decidim-core-0.28.2 lib/decidim/has_attachment_collections.rb
decidim-core-0.27.7 lib/decidim/has_attachment_collections.rb
decidim-core-0.28.1 lib/decidim/has_attachment_collections.rb
decidim-core-0.27.6 lib/decidim/has_attachment_collections.rb
decidim-core-0.26.10 lib/decidim/has_attachment_collections.rb
decidim-core-0.26.9 lib/decidim/has_attachment_collections.rb
decidim-core-0.28.0 lib/decidim/has_attachment_collections.rb
decidim-core-0.27.5 lib/decidim/has_attachment_collections.rb
decidim-core-0.28.0.rc5 lib/decidim/has_attachment_collections.rb
decidim-core-0.28.0.rc4 lib/decidim/has_attachment_collections.rb