summaryrefslogtreecommitdiff
path: root/lib/api/project_hooks.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-03-17 13:30:10 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-03-17 13:30:10 +0000
commit63a8af677af4eba9099cb0cd901549d669d570e2 (patch)
tree3edd4eb262a1954289070b1e91d84a4af5ce3db3 /lib/api/project_hooks.rb
parent7bce8748a442a24efa6352cf2df5fff614e33283 (diff)
parent7c60713e82982066e187b8c16ce327978b451b0a (diff)
downloadgitlab-ce-63a8af677af4eba9099cb0cd901549d669d570e2.tar.gz
Merge branch 'split-api-files' into 'master'
Move project members api to separate file
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: