Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-12-13 13:12:13 +0300
committerPhil Hughes <me@iamphill.com>2018-12-13 13:12:13 +0300
commit744f6ed12bf1ce543b4c903d27cfd8362e91795d (patch)
treeaea590d166e5610ddb5b030f7579343adba3dccf /lib/gitlab/graphql.rb
parent2bb468d6b91e164eb8144877015961fe40b2709f (diff)
Enable GraphQL API endpoint
Diffstat (limited to 'lib/gitlab/graphql.rb')
-rw-r--r--lib/gitlab/graphql.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/graphql.rb b/lib/gitlab/graphql.rb
index 74c04e5380e..8a59e83974f 100644
--- a/lib/gitlab/graphql.rb
+++ b/lib/gitlab/graphql.rb
@@ -3,5 +3,9 @@
module Gitlab
module Graphql
StandardGraphqlError = Class.new(StandardError)
+
+ def self.enabled?
+ Feature.enabled?(:graphql, default_enabled: true)
+ end
end
end