summaryrefslogtreecommitdiff
path: root/lib/api/project_hooks.rb
diff options
context:
space:
mode:
authorSimon Knox <psimyn@gmail.com>2018-07-10 13:13:42 +1000
committerSimon Knox <psimyn@gmail.com>2018-07-10 13:13:42 +1000
commitcc40dc852147e12292a1c942b12d01fdefc9e4d1 (patch)
tree8daa619c803f2aa163e07b56198e2173842ed40f /lib/api/project_hooks.rb
parent51aa6098580829a6f6b0623a1559460d99be55be (diff)
parent255db3d59792e9bac92f4327b4e324e2bd32810a (diff)
downloadgitlab-ce-backport-3772-total-weight.tar.gz
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into backport-3772-total-weightbackport-3772-total-weight
Diffstat (limited to 'lib/api/project_hooks.rb')
-rw-r--r--lib/api/project_hooks.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/project_hooks.rb b/lib/api/project_hooks.rb
index 68921ae439b..4760a1c08d7 100644
--- a/lib/api/project_hooks.rb
+++ b/lib/api/project_hooks.rb
@@ -80,7 +80,7 @@ module API
update_params = declared_params(include_missing: false)
- if hook.update_attributes(update_params)
+ if hook.update(update_params)
present hook, with: Entities::ProjectHook
else
error!("Invalid url given", 422) if hook.errors[:url].present?