summaryrefslogtreecommitdiff
path: root/docs/gl_objects
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2018-05-27 19:28:31 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2018-05-27 19:28:31 +0200
commit70257438044b793a42adce791037b9b86ae35d9b (patch)
treee38f46effcfe54cb3346b985c1ca41c61b8da103 /docs/gl_objects
parent590ea0da7e5617c42e705c62370d6e94ff46ea74 (diff)
downloadgitlab-70257438044b793a42adce791037b9b86ae35d9b.tar.gz
Implement user_agent_detail for snippets
Add a new UserAgentDetail mixin to avoid code duplication.
Diffstat (limited to 'docs/gl_objects')
-rw-r--r--docs/gl_objects/projects.rst4
-rw-r--r--docs/gl_objects/snippets.rst4
2 files changed, 8 insertions, 0 deletions
diff --git a/docs/gl_objects/projects.rst b/docs/gl_objects/projects.rst
index 6d69295..1abb82c 100644
--- a/docs/gl_objects/projects.rst
+++ b/docs/gl_objects/projects.rst
@@ -430,6 +430,10 @@ Delete a snippet::
# or
snippet.delete()
+Get user agent detail (admin only)::
+
+ detail = snippet.user_agent_detail()
+
Notes
=====
diff --git a/docs/gl_objects/snippets.rst b/docs/gl_objects/snippets.rst
index 5493db0..9ab4ab2 100644
--- a/docs/gl_objects/snippets.rst
+++ b/docs/gl_objects/snippets.rst
@@ -52,3 +52,7 @@ Delete a snippet::
gl.snippets.delete(snippet_id)
# or
snippet.delete()
+
+Get user agent detail (admin only)::
+
+ detail = snippet.user_agent_detail()