diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-12-15 18:09:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-15 18:09:48 +0100 |
commit | 2644a28cb30dfb57b9543dd045657e8ed660876a (patch) | |
tree | 6e18aec0ffde774b95296b842362e286c9b36328 /app/models | |
parent | 2d1294822089a8f1467723bed425eed51dd7db79 (diff) |
Change remote media files to be downloaded outside of transactions (#21796)
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/media_attachment.rb | 2 |
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 |