From: Toshi MARUYAMA Date: Tue, 6 Aug 2013 06:27:16 +0000 (+0000) Subject: code format cleanup app/models/issue.rb X-Git-Tag: 2.4.0~155 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ae2b47afd667f394f24798baf9bbbecbba49d281;p=redmine.git code format cleanup app/models/issue.rb git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12087 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/models/issue.rb b/app/models/issue.rb index 763808839..d04f5bd04 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -703,7 +703,7 @@ class Issue < ActiveRecord::Base # Is the amount of work done less than it should for the due date def behind_schedule? return false if start_date.nil? || due_date.nil? - done_date = start_date + ((due_date - start_date+1)* done_ratio/100).floor + done_date = start_date + ((due_date - start_date + 1) * done_ratio / 100).floor return done_date <= Date.today end