Commit 245c861c authored by Nick Thomas's avatar Nick Thomas

Merge branch 'be-explicit-about-override' into 'master'

Explicitly give `override` for `EE::Project#feature_available?`

See merge request gitlab-org/gitlab!35520
parents 7c845234 8bd48b0e
...@@ -312,6 +312,7 @@ module EE ...@@ -312,6 +312,7 @@ module EE
::Feature.enabled?(:repository_push_audit_event, self) ::Feature.enabled?(:repository_push_audit_event, self)
end end
override :feature_available?
def feature_available?(feature, user = nil) def feature_available?(feature, user = nil)
if ::ProjectFeature::FEATURES.include?(feature) if ::ProjectFeature::FEATURES.include?(feature)
super super
......
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