Last active
October 21, 2017 12:20
-
-
Save DmytroVasin/47714aea7190a74f1bda4ea5074f66fe to your computer and use it in GitHub Desktop.
Carrierwave bug with version inheritance. ( Part 1 )
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ImageUploader < CarrierWave::Uploader::Base | |
include CarrierWave::MiniMagick | |
storage :file | |
def store_dir | |
"image/#{model.id}" | |
end | |
version :small do | |
process resize_to_fill: [120, 120] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment