amelioration(procedure.chorus): ajoute le feature flag chorus
aux procedure pour activer/desactiver cette nouvelle feature
This commit is contained in:
parent
5ad724a4cb
commit
758b739aa3
2 changed files with 10 additions and 0 deletions
9
app/models/concerns/procedure_chorus_concern.rb
Normal file
9
app/models/concerns/procedure_chorus_concern.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
module ProcedureChorusConcern
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
included do
|
||||
def chorusable?
|
||||
feature_enabled?(:chorus)
|
||||
end
|
||||
end
|
||||
end
|
|
@ -4,6 +4,7 @@ class Procedure < ApplicationRecord
|
|||
include InitiationProcedureConcern
|
||||
include ProcedureGroupeInstructeurAPIHackConcern
|
||||
include ProcedureSVASVRConcern
|
||||
include ProcedureChorusConcern
|
||||
|
||||
include Discard::Model
|
||||
self.discard_column = :hidden_at
|
||||
|
|
Loading…
Reference in a new issue