diff options
Diffstat (limited to 'app/models/hooks/system_hook.rb')
-rw-r--r-- | app/models/hooks/system_hook.rb | 6 |
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 |