17 lines
340 B
Ruby
17 lines
340 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Milestones
|
|
class ClosedIssuesCountService < BaseCountService
|
|
def initialize(milestone)
|
|
@milestone = milestone
|
|
end
|
|
|
|
def cache_key
|
|
"milestone_closed_issues_count_#{@milestone.milestoneish_id}"
|
|
end
|
|
|
|
def relation_for_count
|
|
@milestone.issues.closed
|
|
end
|
|
end
|
|
end
|