Remove Paperclip and use just Active Storage
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user