tech(clean): remove dead code
This commit is contained in:
parent
3e64a3bbbc
commit
56ed901703
2 changed files with 0 additions and 16 deletions
|
@ -740,17 +740,6 @@ class Dossier < ApplicationRecord
|
|||
procedure.duree_conservation_dossiers_dans_ds + (conservation_extension / 1.month.to_i)
|
||||
end
|
||||
|
||||
def avis_for_instructeur(instructeur)
|
||||
if instructeur.dossiers.include?(self)
|
||||
avis.order(created_at: :asc)
|
||||
else
|
||||
avis
|
||||
.where(confidentiel: false)
|
||||
.or(avis.where(claimant: instructeur))
|
||||
.order(created_at: :asc)
|
||||
end
|
||||
end
|
||||
|
||||
def avis_for_expert(expert)
|
||||
Avis
|
||||
.where(dossier_id: id, confidentiel: false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue