Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def show
- identification_document = IdentificationDocument.find(params[:id])
- authorize identification_document
- return unless identification_document
- #this line below is to too long
- document = params[:size] == 'resized' ? identification_document.id_document_resized : identification_document.id_document
- send_data(document.file.read, filename: identification_document.file_name)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement