Sha256: 29c1c8572765b0c9a7261b4e9bb9e5ee934c3d8fc204b78071e0f637ec2dce22
Contents?: true
Size: 323 Bytes
Versions: 2
Compression:
Stored size: 323 Bytes
Contents
# encoding: utf-8 class PostUploader < CarrierWave::Uploader::Base include CarrierWave::MiniMagick storage :file def store_dir "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}" end process :resize_to_fill => [50, 50] version :thumb do process :resize_to_fit => [300, 300] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
media_magick-0.2.0 | spec/dummy/app/uploaders/post_uploader.rb |
media_magick-0.1.1 | spec/dummy/app/uploaders/post_uploader.rb |