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

url_builder: handle project snippets

parent 02591b04
......@@ -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
......
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