Mercurial > hg > soundsoftware-site
diff app/controllers/gantts_controller.rb @ 1:cca12e1c1fd4
* Update to Redmine trunk (SVN revisions 3860-3892)
author | Chris Cannam |
---|---|
date | Wed, 28 Jul 2010 12:08:28 +0100 |
parents | 513646585e45 |
children | 1d32c0a0efbf |
line wrap: on
line diff
--- a/app/controllers/gantts_controller.rb Fri Jul 23 15:52:44 2010 +0100 +++ b/app/controllers/gantts_controller.rb Wed Jul 28 12:08:28 2010 +0100 @@ -37,7 +37,7 @@ respond_to do |format| format.html { render :action => "show", :layout => !request.xhr? } - format.png { send_data(@gantt.to_image, :disposition => 'inline', :type => 'image/png', :filename => "#{basename}.png") } if @gantt.respond_to?('to_image') + format.png { send_data(@gantt.to_image(@project), :disposition => 'inline', :type => 'image/png', :filename => "#{basename}.png") } if @gantt.respond_to?('to_image') format.pdf { send_data(gantt_to_pdf(@gantt, @project), :type => 'application/pdf', :filename => "#{basename}.pdf") } end end