mirror of
https://github.com/anteo/redmine_custom_workflows.git
synced 2026-01-26 00:04:20 +00:00
Tried to create Proc object without a block #257
This commit is contained in:
parent
36e8b4d27e
commit
c1bbf4383f
@ -36,7 +36,7 @@ module RedmineCustomWorkflows
|
|||||||
alias_method :old_to_s, :to_s
|
alias_method :old_to_s, :to_s
|
||||||
|
|
||||||
def to_s(issue=nil)
|
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
|
rescue NoMethodError => e
|
||||||
if issue_from.present? || issue_to.present?
|
if issue_from.present? || issue_to.present?
|
||||||
raise e
|
raise e
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user