Sha256: b0c0e426bc6a33d5c6503c4404012a9f4cf4fdc50f4eb353cba5942ad103cc22
Contents?: true
Size: 559 Bytes
Versions: 7
Compression:
Stored size: 559 Bytes
Contents
# frozen_string_literal: true module GraphQL module Cache if defined?(::Rails) # Railtie integration used to default {GraphQL::Cache.cache} # and {GraphQL::Cache.logger} when in a Rails environment. class Rails < ::Rails::Engine config.after_initialize do # default values for cache and logger in Rails if not set already GraphQL::Cache.cache = ::Rails.cache unless GraphQL::Cache.cache GraphQL::Cache.logger = ::Rails.logger unless GraphQL::Cache.logger end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems