diff options
author | Marin Jankovski <marin@gitlab.com> | 2014-06-30 15:27:17 +0400 |
---|---|---|
committer | Marin Jankovski <marin@gitlab.com> | 2014-06-30 15:27:17 +0400 |
commit | fdbf77ef994dfdee9377fa917ca35ce3d5bd1231 (patch) | |
tree | 4a00266a64e26b9eb4d3ec4cc9a52848278cb76d /app/models | |
parent | d3796b84f8f3ab9da30447eb0bac2cf9aed32b31 (diff) |
Fix styling issues.
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/group_milestone.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/app/models/group_milestone.rb b/app/models/group_milestone.rb index cbd9f2a33cb..7af61f97a63 100644 --- a/app/models/group_milestone.rb +++ b/app/models/group_milestone.rb @@ -18,27 +18,27 @@ class GroupMilestone end def projects - milestones.map{ |milestone| milestone.project } + milestones.map { |milestone| milestone.project } end def issue_count - milestones.map{ |milestone| milestone.issues.count }.sum + milestones.map { |milestone| milestone.issues.count }.sum end def merge_requests_count - milestones.map{ |milestone| milestone.merge_requests.count }.sum + milestones.map { |milestone| milestone.merge_requests.count }.sum end def open_items_count - milestones.map{ |milestone| milestone.open_items_count }.sum + milestones.map { |milestone| milestone.open_items_count }.sum end def closed_items_count - milestones.map{ |milestone| milestone.closed_items_count }.sum + milestones.map { |milestone| milestone.closed_items_count }.sum end def total_items_count - milestones.map{ |milestone| milestone.total_items_count }.sum + milestones.map { |milestone| milestone.total_items_count }.sum end def percent_complete @@ -48,7 +48,7 @@ class GroupMilestone end def state - state = milestones.map{ |milestone| milestone.state } + state = milestones.map { |milestone| milestone.state } if state.count('active') == state.size 'active' @@ -66,15 +66,15 @@ class GroupMilestone end def issues - @group_issues ||= milestones.map{ |milestone| milestone.issues }.flatten.group_by(&:state) + @group_issues ||= milestones.map { |milestone| milestone.issues }.flatten.group_by(&:state) end def merge_requests - @group_merge_requests ||= milestones.map{ |milestone| milestone.merge_requests }.flatten.group_by(&:state) + @group_merge_requests ||= milestones.map { |milestone| milestone.merge_requests }.flatten.group_by(&:state) end def participants - milestones.map{ |milestone| milestone.participants.uniq }.reject(&:empty?).flatten + milestones.map { |milestone| milestone.participants.uniq }.reject(&:empty?).flatten end def opened_issues |