debian-mirror-gitlab/app/models/personal_snippet.rb

10 lines
198 B
Ruby
Raw Normal View History

2018-11-18 11:00:15 +05:30
# frozen_string_literal: true
2014-09-02 18:07:02 +05:30
class PersonalSnippet < Snippet
2018-11-08 19:23:39 +05:30
include WithUploads
2020-03-09 13:42:32 +05:30
def web_url(only_path: nil)
Gitlab::Routing.url_helpers.snippet_url(self, only_path: only_path)
end
2014-09-02 18:07:02 +05:30
end