Sha256: 22989bb44e80c7accd19131ca6935861978d22050e79e950e115718d39d6640d
Contents?: true
Size: 520 Bytes
Versions: 4
Compression:
Stored size: 520 Bytes
Contents
module Medivo module OrdersController protected def set_pdf_headers if request.env['HTTP_USER_AGENT'] =~ /msie/i headers['Pragma'] = nil headers['Cache-Control'] = nil else headers['Cache-Control'] = 'no-store' end end def get_lab_order raise 'implement your own logic here' end def send_pdf(bytes, file_name) send_data bytes, :disposition => 'inline', :type=> 'application/pdf', :filename=>file_name, :layout=>false end end end
Version data entries
4 entries across 4 versions & 1 rubygems