diff --git a/app/models/concerns/procedure_chorus_concern.rb b/app/models/concerns/procedure_chorus_concern.rb new file mode 100644 index 000000000..5de495d1e --- /dev/null +++ b/app/models/concerns/procedure_chorus_concern.rb @@ -0,0 +1,9 @@ +module ProcedureChorusConcern + extend ActiveSupport::Concern + + included do + def chorusable? + feature_enabled?(:chorus) + end + end +end diff --git a/app/models/procedure.rb b/app/models/procedure.rb index 742b92343..79b1bc2ed 100644 --- a/app/models/procedure.rb +++ b/app/models/procedure.rb @@ -4,6 +4,7 @@ class Procedure < ApplicationRecord include InitiationProcedureConcern include ProcedureGroupeInstructeurAPIHackConcern include ProcedureSVASVRConcern + include ProcedureChorusConcern include Discard::Model self.discard_column = :hidden_at