Sha256: 77ae6a3385fa173eb8a53e24a90344340da2aced0ec59f9bdc3db46b7ff14015

Contents?: true

Size: 219 Bytes

Versions: 27

Compression:

Stored size: 219 Bytes

Contents

module Ddr
  module Models
    module HasAttachments
      extend ActiveSupport::Concern

      included do
        has_many :attachments, property: :is_attached_to, class_name: 'Attachment'
      end

    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
ddr-models-1.13.2 lib/ddr/models/has_attachments.rb
ddr-models-1.13.1 lib/ddr/models/has_attachments.rb
ddr-models-1.13.0 lib/ddr/models/has_attachments.rb
ddr-models-1.11.8 lib/ddr/models/has_attachments.rb
ddr-models-1.12.3 lib/ddr/models/has_attachments.rb
ddr-models-1.11.7 lib/ddr/models/has_attachments.rb
ddr-models-1.12.2 lib/ddr/models/has_attachments.rb
ddr-models-1.11.6 lib/ddr/models/has_attachments.rb
ddr-models-1.12.1 lib/ddr/models/has_attachments.rb
ddr-models-1.11.5 lib/ddr/models/has_attachments.rb
ddr-models-1.12.0 lib/ddr/models/has_attachments.rb
ddr-models-1.11.4 lib/ddr/models/has_attachments.rb
ddr-models-1.11.3 lib/ddr/models/has_attachments.rb
ddr-models-1.11.2 lib/ddr/models/has_attachments.rb
ddr-models-1.11.1 lib/ddr/models/has_attachments.rb
ddr-models-1.11.0 lib/ddr/models/has_attachments.rb
ddr-models-1.10.0 lib/ddr/models/has_attachments.rb
ddr-models-1.9.0 lib/ddr/models/has_attachments.rb
ddr-models-1.8.1 lib/ddr/models/has_attachments.rb
ddr-models-1.8.0 lib/ddr/models/has_attachments.rb