Improve the formatting of the Dossier state enum
This commit is contained in:
parent
1816aef7d0
commit
51dd6df1c0
1 changed files with 10 additions and 9 deletions
|
@ -1,13 +1,14 @@
|
||||||
class Dossier < ActiveRecord::Base
|
class Dossier < ActiveRecord::Base
|
||||||
enum state: {draft: 'draft',
|
enum state: {
|
||||||
initiated: 'initiated',
|
draft: 'draft',
|
||||||
replied: 'replied', #action utilisateur demandé
|
initiated: 'initiated',
|
||||||
updated: 'updated', #etude par l'administration en cours
|
replied: 'replied', # action utilisateur demandé
|
||||||
received: 'received',
|
updated: 'updated', # etude par l'administration en cours
|
||||||
closed: 'closed',
|
received: 'received',
|
||||||
refused: 'refused',
|
closed: 'closed',
|
||||||
without_continuation: 'without_continuation'
|
refused: 'refused',
|
||||||
}
|
without_continuation: 'without_continuation'
|
||||||
|
}
|
||||||
|
|
||||||
BROUILLON = %w(draft)
|
BROUILLON = %w(draft)
|
||||||
NOUVEAUX = %w(initiated)
|
NOUVEAUX = %w(initiated)
|
||||||
|
|
Loading…
Add table
Reference in a new issue