Skip to content

Instantly share code, notes, and snippets.

@DmytroVasin
Created October 21, 2017 13:03
Show Gist options
  • Save DmytroVasin/12d7c4a2a5016a6523f8ef07ef62d352 to your computer and use it in GitHub Desktop.
Save DmytroVasin/12d7c4a2a5016a6523f8ef07ef62d352 to your computer and use it in GitHub Desktop.
Carrierwave bug with version inheritance. ( Part 3 )
class PurchasedImageUploader < ImageUploader
def store_dir
"purchased_image/#{model.id}"
end
version :small do
def store_dir
"purchased_image/#{model.id}"
end
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