demarches-normaliennes/app/controllers/attachments_controller.rb
2019-05-21 14:21:55 +02:00

9 lines
252 B
Ruby

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