Module: Routing::PackagesHelper

Included in:
API::Entities::Package, GitlabRoutingHelper, Types::Packages::PackageLinksType
Defined in:
app/helpers/routing/packages_helper.rb

Instance Method Summary collapse

Instance Method Details

#package_path(package, **options) ⇒ Object



5
6
7
# File 'app/helpers/routing/packages_helper.rb', line 5

def package_path(package, **options)
  Gitlab::UrlBuilder.build(package, only_path: true, **options)
end