Merge pull request #985 from hennevogel/feature_factories

Some fixes for review apps
This commit is contained in:
Christian Bruckmayer 2016-05-12 12:49:47 +02:00
commit 3d2e1f3219
16 changed files with 40 additions and 35 deletions

View file

@ -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