diff --git a/app/models/project.rb b/app/models/project.rb index c3bf7a5e4356972924a67139c11ab96921601938..b65fda44e1edac18fd69677d1350220a70bf4160 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, diff --git a/app/models/web_hook.rb b/app/models/web_hook.rb index 8a5c4b6cd47b096db0f591300f1246f4cc3c14dc..45a795391a2ea17711d67754ae1ef65f943e10f3 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