amelioration(procedure.chorus): ajoute le feature flag chorus aux procedure pour activer/desactiver cette nouvelle feature

This commit is contained in:
Martin 2023-08-28 14:25:45 +02:00
parent 5ad724a4cb
commit 758b739aa3
2 changed files with 10 additions and 0 deletions

View file

@ -0,0 +1,9 @@
module ProcedureChorusConcern
extend ActiveSupport::Concern
included do
def chorusable?
feature_enabled?(:chorus)
end
end
end

View file

@ -4,6 +4,7 @@ class Procedure < ApplicationRecord
include InitiationProcedureConcern
include ProcedureGroupeInstructeurAPIHackConcern
include ProcedureSVASVRConcern
include ProcedureChorusConcern
include Discard::Model
self.discard_column = :hidden_at