Module: Gitlab::BackgroundMigration::BackfillSecurityProjectTrackedContextsDefaultBranch::Routable

Extended by:
ActiveSupport::Concern
Included in:
Namespace, Project
Defined in:
lib/gitlab/background_migration/backfill_security_project_tracked_contexts_default_branch.rb

Instance Method Summary collapse

Instance Method Details

#build_full_pathObject



98
99
100
101
102
103
104
# File 'lib/gitlab/background_migration/backfill_security_project_tracked_contexts_default_branch.rb', line 98

def build_full_path
  if parent && path
    "#{parent.full_path}/#{path}"
  else
    path
  end
end

#full_pathObject



94
95
96
# File 'lib/gitlab/background_migration/backfill_security_project_tracked_contexts_default_branch.rb', line 94

def full_path
  route&.path || build_full_path
end