Refresh attachments with virus scan result

This commit is contained in:
Paul Chavard 2019-05-21 14:21:55 +02:00
parent cc4eba2b36
commit 6a3413018a
5 changed files with 86 additions and 0 deletions

View file

@ -0,0 +1,9 @@
class AttachmentsController < ApplicationController
before_action :authenticate_logged_user!
include ActiveStorage::SetBlob
def show
@attachment = @blob.attachments.find(params[:id])
@user_can_upload = params[:user_can_upload]
end
end