Remove dead code related to dossier state
This commit is contained in:
parent
eede94a59f
commit
33c6ddc452
4 changed files with 0 additions and 99 deletions
|
@ -245,16 +245,6 @@ class Dossier < ApplicationRecord
|
|||
end
|
||||
end
|
||||
|
||||
def statut
|
||||
if accepte?
|
||||
'accepté'
|
||||
elsif sans_suite?
|
||||
'classé sans suite'
|
||||
elsif refuse?
|
||||
'refusé'
|
||||
end
|
||||
end
|
||||
|
||||
def user_geometry
|
||||
if json_latlngs.present?
|
||||
UserGeometry.new(json_latlngs)
|
||||
|
@ -308,23 +298,6 @@ class Dossier < ApplicationRecord
|
|||
DossierMailer.notify_deletion_to_user(deleted_dossier, user.email).deliver_later
|
||||
end
|
||||
|
||||
def old_state_value
|
||||
case state
|
||||
when Dossier.states.fetch(:en_construction)
|
||||
'initiated'
|
||||
when Dossier.states.fetch(:en_instruction)
|
||||
'received'
|
||||
when Dossier.states.fetch(:accepte)
|
||||
'closed'
|
||||
when Dossier.states.fetch(:refuse)
|
||||
'refused'
|
||||
when Dossier.states.fetch(:sans_suite)
|
||||
'without_continuation'
|
||||
else
|
||||
state
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def update_state_dates
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue