url_builder: handle project snippets

This commit is contained in:
Ben Boeckel 2016-08-11 18:11:16 -04:00
parent 02591b0430
commit 9b470aebb9

View file

@ -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