Commit 073f72cf authored by Robert Speicher's avatar Robert Speicher

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.
parent f69232d5
...@@ -263,6 +263,11 @@ class Namespace < ApplicationRecord ...@@ -263,6 +263,11 @@ class Namespace < ApplicationRecord
false false
end end
# Overridden in EE::Namespace
def feature_available?(_feature)
false
end
def full_path_before_last_save def full_path_before_last_save
if parent_id_before_last_save.nil? if parent_id_before_last_save.nil?
path_before_last_save path_before_last_save
......
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