fetch pjs_for_dossier by dossiers

put all bills in bills folder
This commit is contained in:
simon lehericey 2022-04-04 23:40:20 +02:00
parent 11aedb2dc8
commit e1afb35ca2
2 changed files with 56 additions and 30 deletions

View file

@ -7,6 +7,13 @@ class ActiveStorage::DownloadableFile
private
def self.bill_and_path(bill)
[
bill,
"bills/#{self.timestamped_filename(bill)}"
]
end
def self.pj_and_path(dossier_id, pj)
[
pj,