From 83e22515b9e3cf78ee409930692bf7e56c442193 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sat, 3 Apr 2021 09:01:53 +0000 Subject: [PATCH] Ruby 3.0: Fix `super` calls (#34992, #34986). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@20912 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/issue.rb | 2 +- app/models/journal.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/issue.rb b/app/models/issue.rb index e5bb30e25..09f8400cc 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -219,7 +219,7 @@ class Issue < ActiveRecord::Base end def create_or_update(*args) - super + super() ensure @status_was = nil end diff --git a/app/models/journal.rb b/app/models/journal.rb index 50cee4aec..a608703d7 100644 --- a/app/models/journal.rb +++ b/app/models/journal.rb @@ -97,7 +97,7 @@ class Journal < ActiveRecord::Base def save(*args) journalize_changes # Do not save an empty journal - (details.empty? && notes.blank?) ? false : super + (details.empty? && notes.blank?) ? false : super() end # Returns journal details that are visible to user