Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Mazetto <gabriel@gitlab.com>2017-01-13 02:27:06 +0300
committerGabriel Mazetto <gabriel@gitlab.com>2017-01-13 02:37:21 +0300
commite1521b748bc12f71fa7b8f311fcefb9bd3aca8ae (patch)
tree382901b31b20887f495e85c7c0813f2d82cceaf0 /app/models/concerns/project_features_compatibility.rb
parente75b1f11057829964dd9c3aac3b0a0deb964707e (diff)
Mutate the attribute instead of issuing a write operation to the DB
This fixes gitlab-org/gitlab-ee#1520
Diffstat (limited to 'app/models/concerns/project_features_compatibility.rb')
-rw-r--r--app/models/concerns/project_features_compatibility.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/project_features_compatibility.rb b/app/models/concerns/project_features_compatibility.rb
index 6d88951c713..60734bc6660 100644
--- a/app/models/concerns/project_features_compatibility.rb
+++ b/app/models/concerns/project_features_compatibility.rb
@@ -32,6 +32,6 @@ module ProjectFeaturesCompatibility
build_project_feature unless project_feature
access_level = Gitlab::Utils.to_boolean(value) ? ProjectFeature::ENABLED : ProjectFeature::DISABLED
- project_feature.update_attribute(field, access_level)
+ project_feature.send(:write_attribute, field, access_level)
end
end