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
|
note_url
|
||||||
when WikiPage
|
when WikiPage
|
||||||
wiki_page_url
|
wiki_page_url
|
||||||
|
when ProjectSnippet
|
||||||
|
project_snippet_url(object)
|
||||||
else
|
else
|
||||||
raise NotImplementedError.new("No URL builder defined for #{object.class}")
|
raise NotImplementedError.new("No URL builder defined for #{object.class}")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue