mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Merge pull request #985 from hennevogel/feature_factories
Some fixes for review apps
This commit is contained in:
commit
3d2e1f3219
16 changed files with 40 additions and 35 deletions
|
|
@ -7,7 +7,14 @@ class PictureUploader < CarrierWave::Uploader::Base
|
|||
|
||||
# use cloudinary if it's configured
|
||||
if Cloudinary.config.cloud_name
|
||||
# use https by default
|
||||
Cloudinary.config.secure = true
|
||||
|
||||
include Cloudinary::CarrierWave
|
||||
|
||||
def public_id
|
||||
model.try(:photo_file_name) || model.try(:logo_file_name)
|
||||
end
|
||||
end
|
||||
|
||||
def paperclip_path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue