Skip to content

Instantly share code, notes, and snippets.

@DmytroVasin
Last active October 21, 2017 12:20
Show Gist options
  • Save DmytroVasin/47714aea7190a74f1bda4ea5074f66fe to your computer and use it in GitHub Desktop.
Save DmytroVasin/47714aea7190a74f1bda4ea5074f66fe to your computer and use it in GitHub Desktop.
Carrierwave bug with version inheritance. ( Part 1 )
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