Skip to content

Commit

Permalink
feat: add feature flag for lexpol
Browse files Browse the repository at this point in the history
  • Loading branch information
yhru committed Dec 10, 2024
1 parent 1c26a5a commit 07cc072
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/models/type_de_champ.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion config/initializers/flipper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def setup_features(features)
:qrcoded_pdf,
:sva,
:switch_domain,
:visa
:visa,
:lexpol
]

def database_exists?
Expand Down

0 comments on commit 07cc072

Please sign in to comment.