mirror of
https://github.com/ditkrg/workflower.git
synced 2026-01-22 22:26:40 +00:00
Update flow.rb
This commit is contained in:
parent
104cf38bff
commit
0fd5fefc60
@ -42,7 +42,7 @@ module Workflower
|
|||||||
end
|
end
|
||||||
|
|
||||||
def condition_is_met?(calling_model)
|
def condition_is_met?(calling_model)
|
||||||
if @condition_type == "expression"
|
if @condition_type == "expression" && @condition.present?
|
||||||
|
|
||||||
evaluation_phrase = @condition.split(" ").map do |item|
|
evaluation_phrase = @condition.split(" ").map do |item|
|
||||||
if ["||", "&&", "(", ")", "=="].include?(item)
|
if ["||", "&&", "(", ")", "=="].include?(item)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user