demarches-normaliennes/app/controllers/attachments_controller.rb

10 lines
252 B
Ruby
Raw Normal View History

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