summaryrefslogtreecommitdiff
path: root/app/models/hooks
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-11-08 09:09:01 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-11-08 09:09:01 +0000
commite40061efd4c68576da944254567d0b3fbc233ae4 (patch)
treeb39bc9c07069ab9ff022d09157834c3e8514b1d6 /app/models/hooks
parentbd06d7cd6cf903ef0c73670417f4fb15143b70fa (diff)
downloadgitlab-ce-e40061efd4c68576da944254567d0b3fbc233ae4.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/hooks')
-rw-r--r--app/models/hooks/system_hook.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/hooks/system_hook.rb b/app/models/hooks/system_hook.rb
index c0073f9a9b8..3c7f0ef9ffc 100644
--- a/app/models/hooks/system_hook.rb
+++ b/app/models/hooks/system_hook.rb
@@ -10,9 +10,9 @@ class SystemHook < WebHook
:merge_request_hooks
]
- default_value_for :push_events, false
- default_value_for :repository_update_events, true
- default_value_for :merge_requests_events, false
+ attribute :push_events, default: false
+ attribute :repository_update_events, default: true
+ attribute :merge_requests_events, default: false
validates :url, system_hook_url: true