url_builder: handle project snippets
This commit is contained in:
parent
02591b0430
commit
9b470aebb9
1 changed files with 2 additions and 0 deletions
|
@ -22,6 +22,8 @@ module Gitlab
|
|||
note_url
|
||||
when WikiPage
|
||||
wiki_page_url
|
||||
when ProjectSnippet
|
||||
project_snippet_url(object)
|
||||
else
|
||||
raise NotImplementedError.new("No URL builder defined for #{object.class}")
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue