Remove Paperclip and use just Active Storage

This commit is contained in:
Javi Martín
2021-07-28 01:55:54 +02:00
parent ca7f2bc9d5
commit 7212657c02
33 changed files with 128 additions and 355 deletions

View File

@@ -34,7 +34,7 @@ class DirectUpload
end
def save_attachment
@relation.storage_attachment.blob.save!
@relation.attachment.blob.save!
end
def persisted?
@@ -53,7 +53,7 @@ class DirectUpload
def relation_attributtes
{
storage_attachment: @attachment,
attachment: @attachment,
cached_attachment: @cached_attachment,
user: @user
}