Refresh attachments with virus scan result
This commit is contained in:
parent
cc4eba2b36
commit
6a3413018a
5 changed files with 86 additions and 0 deletions
9
app/controllers/attachments_controller.rb
Normal file
9
app/controllers/attachments_controller.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue