Sha256: 5befca921ebf11ff80ac59ea16d1d82fa7d0ae81b06e50c3e3f5234ec9eff79d

Contents?: true

Size: 382 Bytes

Versions: 16

Compression:

Stored size: 382 Bytes

Contents

class CoverImageUploader < ImageUploader
	
  def store_dir
    "uploads/cover_images/#{model.id}"
  end

	version :large do
    process :resize_to_fill => [750, 368]
  end

  version :medium do
    process :resize_to_fill => [550, 294]
  end

  version :small do
    process :resize_to_fill => [300, 160]
  end

  version :tiny do
    process :resize_to_fill => [100, 54]
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
kuppayam-0.1.31 app/uploaders/cover_image_uploader.rb
kuppayam-0.1.30 app/uploaders/cover_image_uploader.rb
kuppayam-0.1.29 app/uploaders/cover_image_uploader.rb
kuppayam-0.1.28 app/uploaders/cover_image_uploader.rb
kuppayam-0.1.27 app/uploaders/cover_image_uploader.rb
kuppayam-0.1.26 app/uploaders/cover_image_uploader.rb
kuppayam-0.1.25 app/uploaders/cover_image_uploader.rb
kuppayam-0.1.24 app/uploaders/cover_image_uploader.rb
kuppayam-0.1.23 app/uploaders/cover_image_uploader.rb
kuppayam-0.1.22 app/uploaders/cover_image_uploader.rb
kuppayam-0.1.21 app/uploaders/cover_image_uploader.rb
kuppayam-0.1.20 app/uploaders/cover_image_uploader.rb
kuppayam-0.1.19 app/uploaders/cover_image_uploader.rb
kuppayam-0.1.18 app/uploaders/cover_image_uploader.rb
kuppayam-0.1.17 app/uploaders/cover_image_uploader.rb
kuppayam-0.1.16 app/uploaders/cover_image_uploader.rb