summaryrefslogtreecommitdiff
path: root/lib/gitlab/graphql
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-03-19 00:09:27 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-19 00:09:27 +0000
commit77d15aff0eaa7dd8a8ce988436a502c5ab6bb55b (patch)
tree7e5a828e67a98dbb3b7eb1f73b569d15bbcf0f45 /lib/gitlab/graphql
parent8b5c2a4525819c6b18f422b4baa0f6568286909b (diff)
downloadgitlab-ce-77d15aff0eaa7dd8a8ce988436a502c5ab6bb55b.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/graphql')
-rw-r--r--lib/gitlab/graphql/docs/helper.rb2
-rw-r--r--lib/gitlab/graphql/docs/renderer.rb2
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/graphql/docs/helper.rb b/lib/gitlab/graphql/docs/helper.rb
index 46f253e08e8..0dd28b32511 100644
--- a/lib/gitlab/graphql/docs/helper.rb
+++ b/lib/gitlab/graphql/docs/helper.rb
@@ -1,5 +1,7 @@
# frozen_string_literal: true
+return if Rails.env.production?
+
module Gitlab
module Graphql
module Docs
diff --git a/lib/gitlab/graphql/docs/renderer.rb b/lib/gitlab/graphql/docs/renderer.rb
index fe950de7d13..6abd56c89c6 100644
--- a/lib/gitlab/graphql/docs/renderer.rb
+++ b/lib/gitlab/graphql/docs/renderer.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-require 'gitlab/graphql/docs/helper'
+return if Rails.env.production?
module Gitlab
module Graphql