Updates dashboard poster controller

This commit is contained in:
decabeza
2018-10-17 01:12:34 +02:00
parent bd1ba2bc78
commit f4d9fe2417

View File

@@ -5,7 +5,10 @@ class Dashboard::PosterController < Dashboard::BaseController
respond_to do |format|
format.html
format.pdf do
render pdf: 'poster', page_size: 'A3', show_as_html: Rails.env.test?
render pdf: 'poster',
page_size: 'A4',
show_as_html: Rails.env.test? || params.key?('debug'),
margin: { top: 0 }
end
end
end