From c1bbf4383fc571b8c5f3ac8c6df49de81f9390fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Pi=C4=8Dman?= Date: Thu, 5 May 2022 10:09:57 +0200 Subject: [PATCH] Tried to create Proc object without a block #257 --- lib/redmine_custom_workflows/patches/issue_relation_patch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redmine_custom_workflows/patches/issue_relation_patch.rb b/lib/redmine_custom_workflows/patches/issue_relation_patch.rb index b9f31fc..1e67623 100644 --- a/lib/redmine_custom_workflows/patches/issue_relation_patch.rb +++ b/lib/redmine_custom_workflows/patches/issue_relation_patch.rb @@ -36,7 +36,7 @@ module RedmineCustomWorkflows alias_method :old_to_s, :to_s def to_s(issue=nil) - block_given? ? old_to_s(issue, &Proc.new) : old_to_s(issue) + block_given? ? old_to_s(issue, &Proc.new {}) : old_to_s(issue) rescue NoMethodError => e if issue_from.present? || issue_to.present? raise e