mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
And finally make use of Cloudinary if it's configured
This commit is contained in:
parent
de486dc621
commit
86896cc46b
1 changed files with 5 additions and 0 deletions
|
|
@ -5,6 +5,11 @@ class PictureUploader < CarrierWave::Uploader::Base
|
|||
include CarrierWave::Compatibility::Paperclip
|
||||
include CarrierWave::BombShelter
|
||||
|
||||
# use cloudinary if it's configured
|
||||
if Cloudinary.config.cloud_name
|
||||
include Cloudinary::CarrierWave
|
||||
end
|
||||
|
||||
def paperclip_path
|
||||
"system/#{object_class_name}/#{extra_store_dir}/#{id_partition}/:style/:basename.:extension"
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue