Sha256: c84fdad3a8fbd3570c048d641a096b30c3dcae80d79244b43b181d5c3c302362

Contents?: true

Size: 692 Bytes

Versions: 22

Compression:

Stored size: 692 Bytes

Contents

require 'oj'
require 'rack'
require 'graphql'

# Timeout needs to be manually required before following fix is released:
# https://github.com/rmosolgo/graphql-ruby/commit/56abba472dbb48a1f8445d41f928bea72b5148e9
require 'timeout'

require 'rack_graphql/version'
require 'rack_graphql/exceptions'
require 'rack_graphql/health_response_builder'
require 'rack_graphql/middleware'
require 'rack_graphql/application'

module RackGraphql
  class << self
    def log_exception_backtrace
      return @log_exception_backtrace unless @log_exception_backtrace.nil?

      %w[1 true].include?(ENV['RACK_GRAPHQL_LOG_EXCEPTION_BACKTRACE'].to_s)
    end

    attr_writer :log_exception_backtrace
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
rack-graphql-2.7.0 lib/rack_graphql.rb
rack-graphql-2.6.1 lib/rack_graphql.rb