Usptream sync

This commit is contained in:
Senad Uka
2020-07-20 13:28:40 +00:00
parent add8304eab
commit 40f241b75f
74 changed files with 12779 additions and 71 deletions

View File

@@ -16,7 +16,12 @@ class ContractTemplates::QrCodesController < ApplicationController
end
def qr_code
authorize QrCode.build_from_contract_template(@contract_template)
if params[:multi_sign_ids].present?
contract_templates_group = authorize contract_templates.where(id: params[:multi_sign_ids]).order_by_recent
authorize QrCode.build_from_multiple_contract_templates(contract_templates_group, @contract_template.project)
else
authorize QrCode.build_from_contract_template(@contract_template)
end
end
def download_attributes