lib/paperclip/storage/cloudinary.rb in paperclip-cloudinary-1.3.0 vs lib/paperclip/storage/cloudinary.rb in paperclip-cloudinary-1.3.1

- old
+ new

@@ -72,10 +72,11 @@ style = default_style else style = style_or_options end inline_opts = options[:cloudinary] || {} - ::Cloudinary::Utils.cloudinary_url path(style), cloudinary_url_options(style, inline_opts) + result = ::Cloudinary::Utils.cloudinary_url path(style), cloudinary_url_options(style, inline_opts) + result.nil? ? super(nil) : result end def public_id style public_id_for_path(path style) end