Sha256: fdffa039c0a88408d57cc5b5ea315e41a99d3759e2ae612718a3b1c14b52c7f5
Contents?: true
Size: 609 Bytes
Versions: 1
Compression:
Stored size: 609 Bytes
Contents
# frozen_string_literal: true module GraphQL # Support {GraphQL::Parser::Cache} # # @example Enable the parser cache with default directory # # config.graphql.parser_cache = true # class Railtie < Rails::Railtie config.graphql = ActiveSupport::OrderedOptions.new config.graphql.parser_cache = false config.before_eager_load do GraphQL.eager_load! end initializer("graphql.cache") do |app| if config.graphql.parser_cache Language::Parser.cache ||= Language::Cache.new( app.root.join("tmp/cache/graphql") ) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
graphql-2.4.6 | lib/graphql/railtie.rb |