summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2016-08-11 18:11:16 -0400
committerBen Boeckel <ben.boeckel@kitware.com>2016-08-24 10:32:12 -0400
commit9b470aebb993d7a5745f0e9fc17b207fe46b16fe (patch)
tree768641af472d13a72d7d94be9abbfec2949dd533
parent02591b043052eb4f8041f8cf51546fab272d7b61 (diff)
downloadgitlab-ce-9b470aebb993d7a5745f0e9fc17b207fe46b16fe.tar.gz
url_builder: handle project snippets
-rw-r--r--lib/gitlab/url_builder.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/url_builder.rb b/lib/gitlab/url_builder.rb
index fe65c246101..99d0c28e749 100644
--- a/lib/gitlab/url_builder.rb
+++ b/lib/gitlab/url_builder.rb
@@ -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