From b7f4553e3e4681d5a4a53af35650bcbb1c83b390 Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Fri, 20 Jan 2017 12:25:53 +0100 Subject: Backport changes introduced by https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/1083 --- app/models/namespace.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/models/namespace.rb') diff --git a/app/models/namespace.rb b/app/models/namespace.rb index d41833de66f..778b9c127ad 100644 --- a/app/models/namespace.rb +++ b/app/models/namespace.rb @@ -4,6 +4,7 @@ class Namespace < ActiveRecord::Base include CacheMarkdownField include Sortable include Gitlab::ShellAdapter + include Gitlab::CurrentSettings include Routable cache_markdown_field :description, pipeline: :description @@ -174,6 +175,10 @@ class Namespace < ActiveRecord::Base end end + def shared_runners_enabled? + projects.with_shared_runners.any? + end + def full_name @full_name ||= if parent -- cgit v1.2.1