Class: Deployments::DeploymentPresenter
- Inherits:
-
Gitlab::View::Presenter::Delegated
- Object
- SimpleDelegator
- Gitlab::View::Presenter::Delegated
- Deployments::DeploymentPresenter
- Defined in:
- app/presenters/deployments/deployment_presenter.rb
Instance Method Summary collapse
-
#tags ⇒ Object
Note: this returns the path key as ‘tags/tag_name’ but it is used as a URL in the UI.
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, #web_path, #web_url
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
#tags ⇒ Object
Note: this returns the path key as ‘tags/tag_name’ but it is used as a URL in the UI
11 12 13 14 15 16 17 18 |
# File 'app/presenters/deployments/deployment_presenter.rb', line 11 def super.map do |tag| { name: tag.delete_prefix(Gitlab::Git::TAG_REF_PREFIX), path: tag.delete_prefix('refs/') } end end |