Sha256: 23ce7de27f43cf41c05cda385b81f0c2f9a82e39cbb76f1ef409ddcd96fd05cc
Contents?: true
Size: 625 Bytes
Versions: 18
Compression:
Stored size: 625 Bytes
Contents
module Medivo module OrdersController protected def set_pdf_headers if request.env['HTTP_USER_AGENT'] =~ /msie/i # source: http://in2.php.net/manual/en/function.header.php#83219 headers['Pragma'] = 'public' headers['Cache-Control'] = 'maxage=1' else headers['Cache-Control'] = 'no-store' end end def get_lab_order raise 'implement your own logic here' end def send_pdf(file, file_name) send_data file.read, :disposition => 'inline', :type=> 'application/pdf', :filename=>file_name, :layout=>false file.close end end end
Version data entries
18 entries across 18 versions & 1 rubygems