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:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-11-08 12:09:01 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-11-08 12:09:01 +0300
commite40061efd4c68576da944254567d0b3fbc233ae4 (patch)
treeb39bc9c07069ab9ff022d09157834c3e8514b1d6 /app/models/operations
parentbd06d7cd6cf903ef0c73670417f4fb15143b70fa (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/operations')
-rw-r--r--app/models/operations/feature_flag.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/operations/feature_flag.rb b/app/models/operations/feature_flag.rb
index e36c59366fe..0df8c87f73f 100644
--- a/app/models/operations/feature_flag.rb
+++ b/app/models/operations/feature_flag.rb
@@ -16,8 +16,8 @@ module Operations
has_internal_id :iid, scope: :project
- default_value_for :active, true
- default_value_for :version, :new_version_flag
+ attribute :active, default: true
+ attribute :version, default: :new_version_flag
# strategies exists only for the second version
has_many :strategies, class_name: 'Operations::FeatureFlags::Strategy'