Skip to content

Commit

Permalink
Fix missing extension
Browse files Browse the repository at this point in the history
  • Loading branch information
hayesr committed May 11, 2017
1 parent 0ef91e1 commit 446a0ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller/report_downloads.rb
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def set_summary_pdf_data

disable_client_cache
html_string = render_to_string(:template => "/layouts/show_pdf", :layout => false)
pdf_data = PdfGenerator.pdf_from_string(html_string, "pdf_summary")
pdf_data = PdfGenerator.pdf_from_string(html_string, "pdf_summary.css")
send_data(pdf_data,
:type => "application/pdf",
:filename => filename_timestamp("#{klass}_#{@record.name}_summary") + '.pdf'
Expand Down

0 comments on commit 446a0ad

Please sign in to comment.