generate_pdf gets it's parameter now

This commit is contained in:
orangea 2010-01-23 09:20:46 -08:00
parent c718da5351
commit f4571e3617

@ -625,9 +625,9 @@ class ClientsController < ApplicationController
# returns it. The user will get the PDF as a file download.
def download_pdf
client = Client.find(params[:id])
send_data(generate_pdf,
send_data generate_pdf(client),
:filename => "#{client.name}.pdf",
:type => "application/pdf")
:type => "application/pdf"
end
private