Adds support for == in expression conditions

This commit is contained in:
2022-01-11 13:01:03 +03:00
committed by GitHub
parent b27fb43e7d
commit 298de997d6

View File

@@ -45,7 +45,7 @@ module Workflower
if @condition_type == "expression"
evaluation_phrase = @condition.split(" ").map do |item|
if ["||", "&&", "(", ")"].include?(item)
if ["||", "&&", "(", ")", "=="].include?(item)
item
else
"calling_model.#{item}"