simplify find_type_de_champ_by_id
This commit is contained in:
parent
19acfe8795
commit
ce0a592f3c
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue