Merge branch 'fix-migration-changes' into 'master'
Use `default_value_for` to handle null values in only_allow_merge_if_all_discussions_are_resolved Small style improvement for !7427 See merge request !7460
This commit is contained in:
commit
64d094eecc
1 changed files with 1 additions and 4 deletions
|
@ -35,6 +35,7 @@ class Project < ActiveRecord::Base
|
||||||
default_value_for :builds_enabled, gitlab_config_features.builds
|
default_value_for :builds_enabled, gitlab_config_features.builds
|
||||||
default_value_for :wiki_enabled, gitlab_config_features.wiki
|
default_value_for :wiki_enabled, gitlab_config_features.wiki
|
||||||
default_value_for :snippets_enabled, gitlab_config_features.snippets
|
default_value_for :snippets_enabled, gitlab_config_features.snippets
|
||||||
|
default_value_for :only_allow_merge_if_all_discussions_are_resolved, false
|
||||||
|
|
||||||
after_create :ensure_dir_exist
|
after_create :ensure_dir_exist
|
||||||
after_create :create_project_feature, unless: :project_feature
|
after_create :create_project_feature, unless: :project_feature
|
||||||
|
@ -1334,10 +1335,6 @@ class Project < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def only_allow_merge_if_all_discussions_are_resolved
|
|
||||||
super || false
|
|
||||||
end
|
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def pushes_since_gc_redis_key
|
def pushes_since_gc_redis_key
|
||||||
|
|
Loading…
Reference in a new issue