debian-mirror-gitlab/config/routes/directs/milestone.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
334 B
Ruby
Raw Normal View History

2023-04-23 21:23:45 +05:30
# 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