to_s
This commit is contained in:
parent
f98d1463a6
commit
43f926a1de
11 changed files with 14 additions and 14 deletions
|
@ -25,7 +25,7 @@ class Logic::NAryOperator < Logic::Term
|
|||
|
||||
not_booleans = @operands.filter { |operand| operand.type(type_de_champs) != :boolean }
|
||||
if not_booleans.present?
|
||||
errors += ["'#{operator_name}' ne contient pas que des booléens : #{not_booleans.map(&:to_s).join(', ')}"]
|
||||
errors += ["'#{operator_name}' ne contient pas que des booléens : #{not_booleans.map { |o| o.to_s(type_de_champs) }.join(', ')}"]
|
||||
end
|
||||
|
||||
errors + @operands.flat_map { |operand| operand.errors(type_de_champs) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue