Improve the formatting of the Dossier state enum

This commit is contained in:
gregoirenovel 2017-05-26 18:27:51 +02:00
parent 1816aef7d0
commit 51dd6df1c0

View file

@ -1,13 +1,14 @@
class Dossier < ActiveRecord::Base
enum state: {draft: 'draft',
initiated: 'initiated',
replied: 'replied', #action utilisateur demandé
updated: 'updated', #etude par l'administration en cours
received: 'received',
closed: 'closed',
refused: 'refused',
without_continuation: 'without_continuation'
}
enum state: {
draft: 'draft',
initiated: 'initiated',
replied: 'replied', # action utilisateur demandé
updated: 'updated', # etude par l'administration en cours
received: 'received',
closed: 'closed',
refused: 'refused',
without_continuation: 'without_continuation'
}
BROUILLON = %w(draft)
NOUVEAUX = %w(initiated)