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