Skip to content

Commit

Permalink
Tried to create Proc object without a block #257
Browse files Browse the repository at this point in the history
  • Loading branch information
picman committed May 5, 2022
1 parent 36e8b4d commit c1bbf43
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def self.prepended(base)
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
Expand Down

0 comments on commit c1bbf43

Please sign in to comment.