gitlab-org--gitlab-foss/app/presenters/tree_entry_presenter.rb
2019-06-05 08:46:32 +01:00

9 lines
247 B
Ruby

# frozen_string_literal: true
class TreeEntryPresenter < Gitlab::View::Presenter::Delegated
presents :tree
def web_url
Gitlab::Routing.url_helpers.project_tree_url(tree.repository.project, File.join(tree.commit_id, tree.path))
end
end