Commit 8b7e6e22 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Unify app/presenters/merge_request_presenter.rb

parent 06b6fcc8
class MergeRequestPresenter < Gitlab::View::Presenter::Delegated
prepend EE::MergeRequestPresenter
include ActionView::Helpers::UrlHelper
include GitlabRoutingHelper
include MarkupHelper
......@@ -102,12 +104,6 @@ class MergeRequestPresenter < Gitlab::View::Presenter::Delegated
end
end
def approvals_path
if requires_approve?
approvals_project_merge_request_path(project, merge_request)
end
end
def source_branch_with_namespace_link
namespace = source_project_namespace
branch = source_branch
......
module EE
module MergeRequestPresenter
def approvals_path
if requires_approve?
approvals_project_merge_request_path(project, merge_request)
end
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment