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