Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b85b1f26
Commit
b85b1f26
authored
Nov 03, 2014
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Name the class singular, fix the failing spec.
parent
2ff68bfc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
lib/api/api.rb
lib/api/api.rb
+1
-1
lib/api/project_git_hook.rb
lib/api/project_git_hook.rb
+2
-2
No files found.
lib/api/api.rb
View file @
b85b1f26
...
...
@@ -41,7 +41,7 @@ module API
mount
ProjectMembers
mount
DeployKeys
mount
ProjectHooks
mount
ProjectGitHook
s
mount
ProjectGitHook
mount
Ldap
mount
Services
mount
Files
...
...
lib/api/project_git_hook
s
.rb
→
lib/api/project_git_hook.rb
View file @
b85b1f26
module
API
# Projects git hook API
class
ProjectGitHook
s
<
Grape
::
API
class
ProjectGitHook
<
Grape
::
API
before
{
authenticate!
}
before
{
authorize_admin_project
}
...
...
@@ -50,7 +50,7 @@ module API
:deny_delete_tag
]
if
@git_hook
.
update_attributes
attrs
if
@git_hook
&&
@git_hook
.
update_attributes
(
attrs
)
present
@git_hook
,
with:
Entities
::
ProjectGitHook
else
not_found!
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment