diff options
Diffstat (limited to 'lib/gitlab/graphql')
-rw-r--r-- | lib/gitlab/graphql/docs/helper.rb | 2 | ||||
-rw-r--r-- | lib/gitlab/graphql/docs/renderer.rb | 2 |
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 |