From f9eb77227a1eb5df9f265b18db0b7ab65cac4e77 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Wed, 5 Jun 2024 08:21:59 +0000 Subject: [PATCH] Fix RuboCop offense Naming/MemoizedInstanceVariableName (#37862, #1671). git-svn-id: https://svn.redmine.org/redmine/trunk@22860 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/version.rb b/app/models/version.rb index c0d4d0dee..b1327f068 100644 --- a/app/models/version.rb +++ b/app/models/version.rb @@ -250,7 +250,7 @@ class Version < ApplicationRecord # Returns the total estimated remaining time for this version # (sum of leaves estimated_remaining_hours) def estimated_remaining_hours - @remaining_hours ||= fixed_issues.estimated_remaining_hours + @estimated_remaining_hours ||= fixed_issues.estimated_remaining_hours end # Returns the total reported time for this version -- 2.39.5