diff --git a/app/facades/dossier_facades.rb b/app/facades/dossier_facades.rb index 0616bce68..74cab5777 100644 --- a/app/facades/dossier_facades.rb +++ b/app/facades/dossier_facades.rb @@ -3,7 +3,6 @@ class DossierFacades #TODO rechercher en fonction de la personne/email def initialize(dossier_id, email, champ_id = nil) @dossier = Dossier.where(archived: false).find(dossier_id) - @email = email @champ_id = champ_id end @@ -35,10 +34,6 @@ class DossierFacades @dossier.ordered_commentaires.where(champ_id: @champ_id).decorate end - def commentaire_email - @email - end - def procedure @dossier.procedure end diff --git a/app/facades/invite_dossier_facades.rb b/app/facades/invite_dossier_facades.rb index 824d93ce3..63e9b5a61 100644 --- a/app/facades/invite_dossier_facades.rb +++ b/app/facades/invite_dossier_facades.rb @@ -3,7 +3,5 @@ class InviteDossierFacades < DossierFacades #TODO rechercher en fonction de la personne/email def initialize dossier_id, email @dossier = (Invite.where(email: email).find(dossier_id)).dossier - @email = email end - end \ No newline at end of file diff --git a/spec/facades/invite_dossier_facades_spec.rb b/spec/facades/invite_dossier_facades_spec.rb index 2e58d94ee..63093b2e9 100644 --- a/spec/facades/invite_dossier_facades_spec.rb +++ b/spec/facades/invite_dossier_facades_spec.rb @@ -12,5 +12,4 @@ describe InviteDossierFacades do end it { expect(subject.dossier).to eq dossier } - it { expect(subject.commentaire_email).to eq email } end \ No newline at end of file