Sha256: c2a74492c563c507e323d8503e11595e7a325ecdef1f2ac9815c02d0c60e180e

Contents?: true

Size: 228 Bytes

Versions: 6

Compression:

Stored size: 228 Bytes

Contents

class Product < ActiveRecord::Base

  belongs_to :shop

  has_attachments(
    :pictures,
    path: ':id-:style.:extension',
    default_path: 'missing.png'
  )

  has_attachment(
    :brief,
    path: ':id.:extension'
  )

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
attachs-4.0.0.5 test/dummy/app/models/product.rb
attachs-4.0.0.4 test/dummy/app/models/product.rb
attachs-4.0.0.3 test/dummy/app/models/product.rb
attachs-4.0.0.2 test/dummy/app/models/product.rb
attachs-4.0.0.1 test/dummy/app/models/product.rb
attachs-4.0.0.0 test/dummy/app/models/product.rb