Class: Types::Packages::PackageLinksType

Inherits:
BaseObject
  • Object
show all
Includes:
Routing::PackagesHelper
Defined in:
app/graphql/types/packages/package_links_type.rb

Instance Method Summary collapse

Methods included from Routing::PackagesHelper

#package_path

Methods inherited from BaseObject

accepts, assignable?, authorization, authorize, authorized?, #current_user, #id

Methods included from Gitlab::Graphql::Present

#present, #unpresented

Instance Method Details

#web_pathObject



14
15
16
17
18
# File 'app/graphql/types/packages/package_links_type.rb', line 14

def web_path
  return unless object.default?

  package_path(object)
end