Class: TreeEntryPresenter
- Inherits:
-
Gitlab::View::Presenter::Delegated
- Object
- SimpleDelegator
- Gitlab::View::Presenter::Delegated
- TreeEntryPresenter
- Defined in:
- app/presenters/tree_entry_presenter.rb
Instance Method Summary collapse
Methods inherited from Gitlab::View::Presenter::Delegated
Methods included from Gitlab::Utils::DelegatorOverride
#delegator_override, #delegator_override_with, #delegator_target, validator, validators, verify!
Methods included from Gitlab::View::Presenter::Base
#__subject__, #can?, #declarative_policy_delegate, #is_a?, #path_with_line_numbers, #present, #url_builder
Methods included from Gitlab::Allowable
Methods included from Gitlab::Routing
includes_helpers, redirect_legacy_paths, url_helpers
Constructor Details
This class inherits a constructor from Gitlab::View::Presenter::Delegated
Instance Method Details
#web_path ⇒ Object
11 12 13 14 |
# File 'app/presenters/tree_entry_presenter.rb', line 11 def web_path Gitlab::Routing.url_helpers.project_tree_path(tree.repository.project, ref_qualified_path, ref_type: tree.ref_type) end |
#web_url ⇒ Object
6 7 8 9 |
# File 'app/presenters/tree_entry_presenter.rb', line 6 def web_url Gitlab::Routing.url_helpers.project_tree_url(tree.repository.project, ref_qualified_path, ref_type: tree.ref_type) end |