Sha256: 6d38f49dc2c62757ee81aea420a36888a646f9dfd994c9ca6d7fcea364db79ce
Contents?: true
Size: 473 Bytes
Versions: 7
Compression:
Stored size: 473 Bytes
Contents
class Character::ImageUploader < CarrierWave::Uploader::Base include CarrierWave::MiniMagick def store_dir "uploads/character/images/#{ model.id }" end # used for blog posts version :regular do process resize_to_fit: [800, 600] end # used for thumbnails in the list view version :chr_thumb_small do process resize_to_fill: [56, 56] end # used in gallery modal view version :chr_thumb do process resize_to_fill: [156, 156] end end
Version data entries
7 entries across 7 versions & 1 rubygems