Welcome to mirror list, hosted at ThFree Co, Russian Federation.

milestone.rb « directs « routes « config - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5a8086cca253415ea0ea863ecb6831785b5a08cc (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

# @!method milestone_path(milestone, options = {})
# @!method milestone_url(milestone, options = {})
direct(:milestone) do |milestone, *args|
  if milestone.group_milestone?
    [milestone.group, milestone, *args]
  elsif milestone.project_milestone?
    [milestone.project, milestone, *args]
  end
end