Adds support for == in expression conditions

This commit is contained in:
Brusk Hamarash 2022-01-11 13:01:03 +03:00 committed by GitHub
parent b27fb43e7d
commit 298de997d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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}"