debian-mirror-gitlab/config/routes/directs/milestone.rb
2023-04-23 21:23:45 +05:30

11 lines
334 B
Ruby

# 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