summaryrefslogtreecommitdiff
path: root/app/models/concerns/ci/metadatable.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/concerns/ci/metadatable.rb')
-rw-r--r--app/models/concerns/ci/metadatable.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/ci/metadatable.rb b/app/models/concerns/ci/metadatable.rb
index 601637ea32a..114435d5a21 100644
--- a/app/models/concerns/ci/metadatable.rb
+++ b/app/models/concerns/ci/metadatable.rb
@@ -77,7 +77,7 @@ module Ci
def write_metadata_attribute(legacy_key, metadata_key, value)
# save to metadata or this model depending on the state of feature flag
- if Feature.enabled?(:ci_build_metadata_config)
+ if Feature.enabled?(:ci_build_metadata_config, project, default_enabled: :yaml)
ensure_metadata.write_attribute(metadata_key, value)
write_attribute(legacy_key, nil)
else