Default values for web hooks
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
0de7a7cfcd
commit
ccd617e58e
1 changed files with 4 additions and 0 deletions
|
@ -17,6 +17,10 @@
|
|||
class WebHook < ActiveRecord::Base
|
||||
include HTTParty
|
||||
|
||||
default_value_for :push_events, true
|
||||
default_value_for :issues_events, false
|
||||
default_value_for :merge_requests_events, false
|
||||
|
||||
attr_accessible :url
|
||||
|
||||
# HTTParty timeout
|
||||
|
|
Loading…
Reference in a new issue