[Fix #2741] Filter / sort by en_construction_at

This commit is contained in:
Frederic Merizen 2018-10-17 11:29:52 +02:00
parent dcb9a75fae
commit a2bd0582b9
2 changed files with 2 additions and 0 deletions

View file

@ -16,6 +16,7 @@ class ProcedurePresentation < ApplicationRecord
def fields
fields = [
field_hash('Créé le', 'self', 'created_at'),
field_hash('En construction le', 'self', 'en_construction_at'),
field_hash('Mis à jour le', 'self', 'updated_at'),
field_hash('Demandeur', 'user', 'email')
]

View file

@ -58,6 +58,7 @@ describe ProcedurePresentation do
let(:expected) {
[
{ "label" => 'Créé le', "table" => 'self', "column" => 'created_at' },
{ "label" => 'En construction le', "table" => 'self', "column" => 'en_construction_at' },
{ "label" => 'Mis à jour le', "table" => 'self', "column" => 'updated_at' },
{ "label" => 'Demandeur', "table" => 'user', "column" => 'email' },
{ "label" => 'SIREN', "table" => 'etablissement', "column" => 'entreprise_siren' },