Commit 9b470aeb authored by Ben Boeckel's avatar Ben Boeckel

url_builder: handle project snippets

parent 02591b04
...@@ -22,6 +22,8 @@ module Gitlab ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment