Fix for media attachments remote URL download

master
Eugen Rochko 8 years ago
parent 1d9c886518
commit ed94e998bc
  1. 6
      app/models/media_attachment.rb

@ -12,10 +12,6 @@ class MediaAttachment < ApplicationRecord
end end
def file_remote_url=(url) def file_remote_url=(url)
unless self[:file_remote_url] == url self.file = URI.parse(url)
self.file = URI.parse(url)
end
self[:file_remote_url] = url
end end
end end

Loading…
Cancel
Save