Class: PdfsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/pdfs_controller.rb

Instance Method Summary collapse

Methods included from AuthentificationHelper

#accessible_company_ids_from_tenant_and_user, #application_mode_from_hostname, #current_company_id_from_accessible_company_ids, #current_tenant_from_user, #current_user_and_locale_from_token

Instance Method Details

#agreementObject



5
6
7
8
9
10
# File 'app/controllers/pdfs_controller.rb', line 5

def agreement
  agreement_path = @app_mode.agreement_file_path
  pdf_path = Rails.root.join('app/assets')
  path = File.join(pdf_path, agreement_path)
  send_file path, type: 'application/pdf', disposition: 'inline'
end