gitlab-org--gitlab-foss/app/models/personal_snippet.rb

9 lines
198 B
Ruby

# frozen_string_literal: true
class PersonalSnippet < Snippet
include WithUploads
def web_url(only_path: nil)
Gitlab::Routing.url_helpers.snippet_url(self, only_path: only_path)
end
end