fix Utils.is_downloadable? for null case
This commit is contained in:
@@ -124,7 +124,7 @@ class UploadService
|
|||||||
end
|
end
|
||||||
|
|
||||||
def self.is_downloadable?(source)
|
def self.is_downloadable?(source)
|
||||||
source.match?(/^https?:\/\//)
|
source =~ /^https?:\/\//
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.generate_resizes(file, upload)
|
def self.generate_resizes(file, upload)
|
||||||
|
|||||||
Reference in New Issue
Block a user