URI parser cannot parse nil
path for CarrierWave::Storage::Fog::File#public_url
#2724
Labels
nil
path for CarrierWave::Storage::Fog::File#public_url
#2724
Hello there,
After upgrading to the latest version of
carrierwave
,CarrierWave::Storage::Fog::File#public_url
started to raiseundefined method 'gsub' for nil:NilClass
for URI parser. It seems that this is due to this commit, which changed usage of path frompath.to_s
topath
for#encode_path
method. Thus, the use case ofpath
beingnil
is not considered.Following line
carrierwave/lib/carrierwave/utilities/uri.rb
Line 14 in 8b33235
should be
The text was updated successfully, but these errors were encountered: