simplify find_type_de_champ_by_id

This commit is contained in:
simon lehericey 2022-05-03 18:05:04 +02:00
parent 19acfe8795
commit ce0a592f3c

View file

@ -385,8 +385,7 @@ class ProcedureRevision < ApplicationRecord
end
def find_type_de_champ_by_id(id)
types_de_champ.find_by(stable_id: id) ||
types_de_champ_in_repetition.find_by!(stable_id: id)
types_de_champ.find_by(stable_id: id)
end
def types_de_champ_in_repetition