class BreezyPDF::Intercept::PublicUrl
:nodoc
Public Instance Methods
call()
click to toggle source
# File lib/breezy_pdf/intercept/public_url.rb, line 6 def call BreezyPDF.logger.info("[BreezyPDF] Requesting render of #{rendered_url}") response = BreezyPDF::RenderRequest.new(rendered_url, metadata).submit [ 302, { "Location" => response.download_url, "Content-Type" => "text/html", "Content-Length" => "0" }, [] ] end