From 29b3d883f3bf84707a44d414cc6f4ad91a499664 Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Tue, 3 Mar 2020 18:34:11 +0100 Subject: [PATCH] suite --- app/controllers/public/file_tunel_downloads_controller.rb | 2 +- app/views/public/file_tunel_downloads/show.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/public/file_tunel_downloads_controller.rb b/app/controllers/public/file_tunel_downloads_controller.rb index e123af7..1ac5253 100644 --- a/app/controllers/public/file_tunel_downloads_controller.rb +++ b/app/controllers/public/file_tunel_downloads_controller.rb @@ -50,7 +50,7 @@ class Public::FileTunelDownloadsController < ApplicationController @data_to_send = File.open(@file_tunel_download.generate_pdf).read - params[:inline] = true + #params[:inline] = true send_data @data_to_send, :filename =>"#{@file_tunel_download.token}.pdf" , :type => 'application/pdf',:disposition => (params[:inline] ? 'inline' : "attachment") diff --git a/app/views/public/file_tunel_downloads/show.html.haml b/app/views/public/file_tunel_downloads/show.html.haml index d913847..cb67233 100644 --- a/app/views/public/file_tunel_downloads/show.html.haml +++ b/app/views/public/file_tunel_downloads/show.html.haml @@ -11,4 +11,4 @@ =link_to "Télécharger maintenant", download_public_file_tunel_download_path(:id => @file_tunel_download.token), :class => "btn btn-primary" - =debug fili_public_file_tunel_download_path(:id => @file_tunel_download.token) \ No newline at end of file + =#debug fili_public_file_tunel_download_path(:id => @file_tunel_download.token) \ No newline at end of file