fix Utils.is_downloadable? for null case

This commit is contained in:
Albert Yi
2018-06-20 10:51:29 -07:00
parent 62218fdb51
commit d240fdde66

View File

@@ -124,7 +124,7 @@ class UploadService
end
def self.is_downloadable?(source)
source.match?(/^https?:\/\//)
source =~ /^https?:\/\//
end
def self.generate_resizes(file, upload)