From 0de7a7cfcdd1556a3353f8d88053db54a0844ed3 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Thu, 27 Feb 2014 15:55:22 +0200 Subject: [PATCH 1/2] Add default value for Project#imported boolean Signed-off-by: Dmitriy Zaporozhets --- app/models/project.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/project.rb b/app/models/project.rb index c3bf7a5e43..b65fda44e1 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -28,6 +28,8 @@ class Project < ActiveRecord::Base include Gitlab::VisibilityLevel extend Enumerize + default_value_for :imported, false + ActsAsTaggableOn.strict_case_match = true attr_accessible :name, :path, :description, :issues_tracker, :label_list, From ccd617e58ea71c42b6b073e692447d0fe3c00be6 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Thu, 27 Feb 2014 15:56:35 +0200 Subject: [PATCH 2/2] Default values for web hooks Signed-off-by: Dmitriy Zaporozhets --- app/models/web_hook.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/web_hook.rb b/app/models/web_hook.rb index 8a5c4b6cd4..45a795391a 100644 --- a/app/models/web_hook.rb +++ b/app/models/web_hook.rb @@ -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