uploads: fix upload failure when given nil source (fix #3168).

This commit is contained in:
evazion
2017-06-17 08:31:44 -05:00
parent 8b8b4fde71
commit ef76ec0385
3 changed files with 14 additions and 4 deletions

View File

@@ -393,7 +393,7 @@ class Upload < ApplicationRecord
module DownloaderMethods
def strip_source
source.try(:strip)
source.to_s.strip
end
# Determines whether the source is downloadable