Upload#is_downloadable? returns true for https sources

This commit is contained in:
Peter Graham
2013-02-22 23:08:31 -08:00
parent 4330e85b17
commit a725c81e1e
2 changed files with 18 additions and 1 deletions

View File

@@ -247,7 +247,7 @@ class Upload < ActiveRecord::Base
module DownloaderMethods
# Determines whether the source is downloadable
def is_downloadable?
source =~ /^http:\/\// && file_path.blank?
source =~ /^https?:\/\// && file_path.blank?
end
# Downloads the file to destination_path