refactor(logic): compute sub champ values
This commit is contained in:
parent
641a33e1e0
commit
93635b3516
7 changed files with 39 additions and 49 deletions
|
@ -37,6 +37,8 @@ class Logic::BinaryOperator < Logic::Term
|
|||
l = @left.compute(champs)
|
||||
r = @right.compute(champs)
|
||||
|
||||
l = l[:value] if l.is_a?(Hash)
|
||||
|
||||
l&.send(operation, r) || false
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue