diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-05 12:09:15 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-05 12:09:15 +0000 |
commit | 20d564f1064622ef0623434372ac3ceb03173331 (patch) | |
tree | 000d95440566cd189ea774168c9756bcc8fc5fae /app/presenters | |
parent | 26384c9a61da9922b8fa4b8351d4e42d51661b37 (diff) | |
download | gitlab-ce-20d564f1064622ef0623434372ac3ceb03173331.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/presenters')
-rw-r--r-- | app/presenters/milestone_presenter.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app/presenters/milestone_presenter.rb b/app/presenters/milestone_presenter.rb new file mode 100644 index 00000000000..7d9045ddebe --- /dev/null +++ b/app/presenters/milestone_presenter.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +class MilestonePresenter < Gitlab::View::Presenter::Delegated + presents :milestone + + def milestone_path + url_builder.milestone_path(milestone) + end + + private + + def url_builder + @url_builder ||= Gitlab::UrlBuilder.new(milestone) + end +end |