Skip to content

Commit

Permalink
added x-sendfile capability to reports
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Hurt committed Jul 27, 2009
1 parent dc1ff83 commit e01bc2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/reports_controller.rb
Expand Up @@ -43,7 +43,8 @@ def show
send_data @report.draw(params),
:filename => params[:id].titleize + '.pdf',
:type => 'application/pdf',
:disposition => 'inline'
:disposition => 'inline',
:x_sendfile => true
end
end
end
Expand Down

0 comments on commit e01bc2a

Please sign in to comment.