Commit ccd617e58ea71c42b6b073e692447d0fe3c00be6
1 parent
0de7a7cf
Exists in
spb-stable
and in
3 other branches
Default values for web hooks
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
app/models/web_hook.rb
| ... | ... | @@ -17,6 +17,10 @@ |
| 17 | 17 | class WebHook < ActiveRecord::Base |
| 18 | 18 | include HTTParty |
| 19 | 19 | |
| 20 | + default_value_for :push_events, true | |
| 21 | + default_value_for :issues_events, false | |
| 22 | + default_value_for :merge_requests_events, false | |
| 23 | + | |
| 20 | 24 | attr_accessible :url |
| 21 | 25 | |
| 22 | 26 | # HTTParty timeout | ... | ... |