diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-09 17:57:24 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-09 17:57:24 +0000 |
commit | 82c0eaadc3011e9417dc2740f7df2e4082ae1a33 (patch) | |
tree | 7e442a0fb036a6e0100c4be0c09919274196b8af /app/models/project.rb | |
parent | 3dff73502addfe7525740db1352e23b35a6060e7 (diff) | |
download | redmine-82c0eaadc3011e9417dc2740f7df2e4082ae1a33.tar.gz redmine-82c0eaadc3011e9417dc2740f7df2e4082ae1a33.zip |
cleanup: rubocop: fix Layout/IndentFirstArrayElement in app/models/project.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19049 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/project.rb')
-rw-r--r-- | app/models/project.rb | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index 6c88093f2..d4af06ca1 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -633,20 +633,22 @@ class Project < ActiveRecord::Base # The earliest start date of a project, based on it's issues and versions def start_date - @start_date ||= [ - issues.minimum('start_date'), - shared_versions.minimum('effective_date'), - Issue.fixed_version(shared_versions).minimum('start_date') - ].compact.min + @start_date ||= + [ + issues.minimum('start_date'), + shared_versions.minimum('effective_date'), + Issue.fixed_version(shared_versions).minimum('start_date') + ].compact.min end # The latest due date of an issue or version def due_date - @due_date ||= [ - issues.maximum('due_date'), - shared_versions.maximum('effective_date'), - Issue.fixed_version(shared_versions).maximum('due_date') - ].compact.max + @due_date ||= + [ + issues.maximum('due_date'), + shared_versions.maximum('effective_date'), + Issue.fixed_version(shared_versions).maximum('due_date') + ].compact.max end def overdue? |