Commit 865a902e authored by Tom Quirk's avatar Tom Quirk Committed by Jan Provaznik

Simplify show_service_templates_nav_link logic

Responding to maintainer feedback.
Remove service_templates_enabled
help method and move it's logic into
show_service_templates_nav_link method.
parent 7b2a9ddc
......@@ -173,12 +173,8 @@ module ServicesHelper
}
end
def service_templates_enabled?
Feature.disabled?(:disable_service_templates, type: :development, default_enabled: :yaml)
end
def show_service_templates_nav_link?
service_templates_enabled?
Feature.disabled?(:disable_service_templates, type: :development, default_enabled: :yaml)
end
end
......
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