Commit c25b0c70 authored by Krasimir Angelov's avatar Krasimir Angelov

Make ci_secrets_syntax flag disabled by default

and extract check in Gitlab::Ci::Features.
parent 96c1e65a
......@@ -27,7 +27,7 @@ module EE
end
def secrets_enabled?
::Feature.enabled?(:ci_secrets_syntax, default_enabled: true)
::Gitlab::Ci::Features.secrets_syntax_enabled?
end
end
end
......
# frozen_string_literal: true
module EE
module Gitlab
module Ci
module Features
extend ActiveSupport::Concern
prepended do
def self.secrets_syntax_enabled?
::Feature.enabled?(:ci_secrets_syntax)
end
end
end
end
end
end
......@@ -44,3 +44,5 @@ module Gitlab
end
end
end
::Gitlab::Ci::Features.prepend_if_ee('::EE::Gitlab::Ci::Features')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment