From 07cc07239857492522bc61f188692dbbd357bdf7 Mon Sep 17 00:00:00 2001 From: "maxim.joseau" Date: Tue, 10 Dec 2024 15:13:33 +0100 Subject: [PATCH] feat: add feature flag for lexpol --- app/models/type_de_champ.rb | 4 ++-- config/initializers/flipper.rb | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/models/type_de_champ.rb b/app/models/type_de_champ.rb index 36cffec21e9..4f47f7b0245 100644 --- a/app/models/type_de_champ.rb +++ b/app/models/type_de_champ.rb @@ -9,7 +9,7 @@ class TypeDeChamp < ApplicationRecord cojo: :cojo_type_de_champ, expression_reguliere: :expression_reguliere_type_de_champ, - lexpol: :lexpol_type_de_champ + lexpol: :lexpol } MINIMUM_TEXTAREA_CHARACTER_LIMIT_LENGTH = 400 @@ -732,7 +732,7 @@ def self.refresh_after_update?(type_champ) type_champs.fetch(:rna), type_champs.fetch(:siret), type_champs.fetch(:numero_dn), - type_champs.fetch(:te_fenua) + type_champs.fetch(:te_fenua), type_champs.fetch(:lexpol) false else diff --git a/config/initializers/flipper.rb b/config/initializers/flipper.rb index 053de3b119b..88ce9f7ee8d 100644 --- a/config/initializers/flipper.rb +++ b/config/initializers/flipper.rb @@ -29,7 +29,8 @@ def setup_features(features) :qrcoded_pdf, :sva, :switch_domain, - :visa + :visa, + :lexpol ] def database_exists?