about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-09-05 19:11:25 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-09-05 19:11:25 +0200
commited94e998bcd8b952dbd6052309bdf5650b29be4f (patch)
tree2bba030e0f31fb3395b40d243fbfb6cbcd3635bc /app
parent1d9c886518ab389917ddf3f6c73daa31536d7fe9 (diff)
Fix for media attachments remote URL download
Diffstat (limited to 'app')
-rw-r--r--app/models/media_attachment.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/models/media_attachment.rb b/app/models/media_attachment.rb
index 3beb96e3a..835287ac9 100644
--- a/app/models/media_attachment.rb
+++ b/app/models/media_attachment.rb
@@ -12,10 +12,6 @@ class MediaAttachment < ApplicationRecord
   end
 
   def file_remote_url=(url)
-    unless self[:file_remote_url] == url
-      self.file = URI.parse(url)
-    end
-
-    self[:file_remote_url] = url
+    self.file = URI.parse(url)
   end
 end