Created
October 21, 2017 13:03
-
-
Save DmytroVasin/12d7c4a2a5016a6523f8ef07ef62d352 to your computer and use it in GitHub Desktop.
Carrierwave bug with version inheritance. ( Part 3 )
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 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