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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/presenters/blob_presenter.rb')
-rw-r--r--app/presenters/blob_presenter.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/presenters/blob_presenter.rb b/app/presenters/blob_presenter.rb
index 6f32f4de62c..c52fc168c55 100644
--- a/app/presenters/blob_presenter.rb
+++ b/app/presenters/blob_presenter.rb
@@ -90,11 +90,11 @@ class BlobPresenter < Gitlab::View::Presenter::Delegated
end
def blame_path
- url_helpers.project_blame_path(project, ref_qualified_path)
+ url_helpers.project_blame_path(*path_params)
end
def history_path
- url_helpers.project_commits_path(project, ref_qualified_path)
+ url_helpers.project_commits_path(*path_params)
end
def permalink_path
@@ -193,7 +193,7 @@ class BlobPresenter < Gitlab::View::Presenter::Delegated
def commit_id
# If `ref_type` is present the commit_id will include the ref qualifier e.g. `refs/heads/`.
# We only accept/return unqualified refs so we need to remove the qualifier from the `commit_id`.
- ExtractsRef.unqualify_ref(blob.commit_id, ref_type)
+ ExtractsRef::RefExtractor.unqualify_ref(blob.commit_id, ref_type)
end
def ref_qualified_path