about summary refs log tree commit diff
path: root/app/models/media_attachment.rb
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-12-15 18:09:48 +0100
committerGitHub <noreply@github.com>2022-12-15 18:09:48 +0100
commit2644a28cb30dfb57b9543dd045657e8ed660876a (patch)
tree6e18aec0ffde774b95296b842362e286c9b36328 /app/models/media_attachment.rb
parent2d1294822089a8f1467723bed425eed51dd7db79 (diff)
Change remote media files to be downloaded outside of transactions (#21796)
Diffstat (limited to 'app/models/media_attachment.rb')
-rw-r--r--app/models/media_attachment.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/media_attachment.rb b/app/models/media_attachment.rb
index 51b256482..5916b0b4b 100644
--- a/app/models/media_attachment.rb
+++ b/app/models/media_attachment.rb
@@ -210,6 +210,8 @@ class MediaAttachment < ApplicationRecord
 
   default_scope { order(id: :asc) }
 
+  attr_accessor :skip_download
+
   def local?
     remote_url.blank?
   end