remove use of repetition.types_de_champ (except rebase)

This commit is contained in:
simon lehericey 2022-05-18 14:49:49 +02:00
parent e976336612
commit 8bd3de2050
6 changed files with 14 additions and 11 deletions

View file

@ -31,11 +31,11 @@ class ProcedureRevision < ApplicationRecord
scope :ordered, -> { order(:created_at) }
def build_champs
types_de_champ_public.map(&:build_champ)
types_de_champ_public.map { |tdc| tdc.build_champ(revision: self) }
end
def build_champs_private
types_de_champ_private.map(&:build_champ)
types_de_champ_private.map { |tdc| tdc.build_champ(revision: self) }
end
def add_type_de_champ(params)