Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. def show
  2. identification_document = IdentificationDocument.find(params[:id])
  3. authorize identification_document
  4. return unless identification_document
  5.  
  6. #this line below is to too long
  7. document = params[:size] == 'resized' ? identification_document.id_document_resized : identification_document.id_document
  8. send_data(document.file.read, filename: identification_document.file_name)
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement