From b868a278b59c3a2acf874cd53b1dc7826789e5bc Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 3 Jul 2020 11:12:14 +0000 Subject: [PATCH] avoid comparing a variable with multiple items at WorkflowTransition#replace_transitions git-svn-id: http://svn.redmine.org/redmine/trunk@19846 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/workflow_transition.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/workflow_transition.rb b/app/models/workflow_transition.rb index 5c3051690..4a525f260 100644 --- a/app/models/workflow_transition.rb +++ b/app/models/workflow_transition.rb @@ -50,7 +50,7 @@ class WorkflowTransition < WorkflowRule end w = w.first - if transition == "1" || transition == true + if ["1", true].include?(transition) unless w w = WorkflowTransition. new( -- 2.39.5