Created
January 15, 2019 18:48
-
-
Save leemour/c4e3f0a3bc129b47ed23d0b688bd2c6c to your computer and use it in GitHub Desktop.
Spree Carrierwave replacement
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
# app/models/spree/image.rb | |
module Spree | |
class Image < Asset | |
mount_uploader :attachment, Spree::ImageUploader, | |
mount_on: :attachment_file_name | |
validates :attachment, presence: true | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment