Sha256: a60f5532410362691f16664c71fec55b9020876d7835551ff5862b30a772eba9

Contents?: true

Size: 217 Bytes

Versions: 6

Compression:

Stored size: 217 Bytes

Contents

class Shop < ActiveRecord::Base

  has_attachment(
    :logo,
    path: ':name/:id-:style.png',
    styles: {
      tiny: '25x25',
      small: '150x150#',
      medium: '300x300!',
      large: '600x'
    }
  )

end

Version data entries

6 entries across 6 versions & 1 rubygems

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