From 073f72cf91b7f284ab1f55fa781ee590a058bf05 Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Thu, 11 Jul 2019 12:22:35 -0500 Subject: Add Namespace#feature_available no-op This gets overridden in `EE::Namespace` and allows us to do things like always treat Epics as "disabled" in Core using the same checks we'd use elsewhere. --- app/models/namespace.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/models/namespace.rb b/app/models/namespace.rb index 1d95590bac9..b3021fab7f1 100644 --- a/app/models/namespace.rb +++ b/app/models/namespace.rb @@ -263,6 +263,11 @@ class Namespace < ApplicationRecord false end + # Overridden in EE::Namespace + def feature_available?(_feature) + false + end + def full_path_before_last_save if parent_id_before_last_save.nil? path_before_last_save -- cgit v1.2.1