Commit ccd617e58ea71c42b6b073e692447d0fe3c00be6

Authored by Dmitriy Zaporozhets
1 parent 0de7a7cf

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,6 +17,10 @@
17 class WebHook < ActiveRecord::Base 17 class WebHook < ActiveRecord::Base
18 include HTTParty 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 attr_accessible :url 24 attr_accessible :url
21 25
22 # HTTParty timeout 26 # HTTParty timeout