diff options
author | Go MAEDA <maeda@farend.jp> | 2021-12-25 08:59:22 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2021-12-25 08:59:22 +0000 |
commit | 91c00f51ec9d9ade33d2bb22a8e67c8cf6b29ba8 (patch) | |
tree | 832b013d313ca2b9ebec99a24b32cc7b1e0d00db /app | |
parent | 85873c103a4171bdcca88bbd48c2eab07e379373 (diff) | |
download | redmine-91c00f51ec9d9ade33d2bb22a8e67c8cf6b29ba8.tar.gz redmine-91c00f51ec9d9ade33d2bb22a8e67c8cf6b29ba8.zip |
Fixes for Performance/BigDecimalWithNumericArgument introduced in RuboCop Performance 1.13.0 (#35142).
git-svn-id: http://svn.redmine.org/redmine/trunk@21326 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/models/issue.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index b51e186cb..1f12d7948 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -1840,7 +1840,7 @@ class Issue < ActiveRecord::Base child_with_total_estimated_hours.sum(&:total_estimated_hours).to_d / child_with_total_estimated_hours.count else - average = 1.0.to_d + average = BigDecimal('1.0') end done = children.sum do |c| estimated = (c.total_estimated_hours || 0.0).to_d |