From 51dd6df1c0e99a1f217ba50573f900b9946f8ba8 Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Fri, 26 May 2017 18:27:51 +0200 Subject: [PATCH] Improve the formatting of the Dossier state enum --- app/models/dossier.rb | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/app/models/dossier.rb b/app/models/dossier.rb index 12b46bf33..ab75d7608 100644 --- a/app/models/dossier.rb +++ b/app/models/dossier.rb @@ -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)