summaryrefslogtreecommitdiff
path: root/lib/api/project_hooks.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-03-17 13:44:54 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-03-17 13:44:54 +0200
commit7c60713e82982066e187b8c16ce327978b451b0a (patch)
tree3edd4eb262a1954289070b1e91d84a4af5ce3db3 /lib/api/project_hooks.rb
parent7bce8748a442a24efa6352cf2df5fff614e33283 (diff)
downloadgitlab-ce-7c60713e82982066e187b8c16ce327978b451b0a.tar.gz
Move project members api to separate file
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/api/project_hooks.rb')
-rw-r--r--lib/api/project_hooks.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/api/project_hooks.rb b/lib/api/project_hooks.rb
index c271dd8b61b..79c3d122d32 100644
--- a/lib/api/project_hooks.rb
+++ b/lib/api/project_hooks.rb
@@ -5,15 +5,6 @@ module API
before { authorize_admin_project }
resource :projects do
- helpers do
- def handle_project_member_errors(errors)
- if errors[:project_access].any?
- error!(errors[:project_access], 422)
- end
- not_found!
- end
- end
-
# Get project hooks
#
# Parameters: