From: Jean-Philippe Lang Date: Sun, 5 Jul 2015 12:53:57 +0000 (+0000) Subject: Fixes methods comments. X-Git-Tag: 3.2.0~341 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5a3ee73a2e21a7adb31d4e9eb4da6ed4ec8b74dd;p=redmine.git Fixes methods comments. git-svn-id: http://svn.redmine.org/redmine/trunk@14409 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/models/issue.rb b/app/models/issue.rb index 72df50cd6..e0f93faef 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -947,7 +947,7 @@ class Issue < ActiveRecord::Base end end - # Preloads visible total spent time for a collection of issues + # Preloads visible spent time for a collection of issues def self.load_visible_spent_hours(issues, user=User.current) if issues.any? hours_by_issue_id = TimeEntry.visible(user).where(:issue_id => issues.map(&:id)).group(:issue_id).sum(:hours) @@ -957,6 +957,7 @@ class Issue < ActiveRecord::Base end end + # Preloads visible total spent time for a collection of issues def self.load_visible_total_spent_hours(issues, user=User.current) if issues.any? hours_by_issue_id = TimeEntry.visible(user).joins(:issue).