Sha256: 9bbd458e0c19027b21f002641d666ff3d729fa9f22b5e957a19597a59993949d

Contents?: true

Size: 390 Bytes

Versions: 17

Compression:

Stored size: 390 Bytes

Contents

class CategoryImageUploader < ImageUploader
	
  def store_dir
    "uploads/category_images/#{model.id}"
  end

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

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

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

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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
dhatu-0.1.23 app/uploaders/category_image_uploader.rb
dhatu-0.1.22 app/uploaders/category_image_uploader.rb
dhatu-0.1.21 app/uploaders/category_image_uploader.rb
dhatu-0.1.20 app/uploaders/category_image_uploader.rb
dhatu-0.1.19 app/uploaders/category_image_uploader.rb
dhatu-0.1.18 app/uploaders/category_image_uploader.rb
dhatu-0.1.16 app/uploaders/category_image_uploader.rb
dhatu-0.1.15 app/uploaders/category_image_uploader.rb
dhatu-0.1.14 app/uploaders/category_image_uploader.rb
dhatu-0.1.13 app/uploaders/category_image_uploader.rb
dhatu-0.1.12 app/uploaders/category_image_uploader.rb
dhatu-0.1.11 app/uploaders/category_image_uploader.rb
dhatu-0.1.10 app/uploaders/category_image_uploader.rb
dhatu-0.1.9 app/uploaders/category_image_uploader.rb
dhatu-0.1.8 app/uploaders/category_image_uploader.rb
dhatu-0.1.7 app/uploaders/category_image_uploader.rb
dhatu-0.1.6 app/uploaders/category_image_uploader.rb