Change remote media files to be downloaded outside of transactions (#21796)
This commit is contained in:
parent
2d12948220
commit
2644a28cb3
2 changed files with 26 additions and 18 deletions
|
@ -210,6 +210,8 @@ class MediaAttachment < ApplicationRecord
|
|||
|
||||
default_scope { order(id: :asc) }
|
||||
|
||||
attr_accessor :skip_download
|
||||
|
||||
def local?
|
||||
remote_url.blank?
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue