Sha256: 1250193ebf4fe7832a0cd9b0b8564c17055423e35a913706bf3be716790be812

Contents?: true

Size: 792 Bytes

Versions: 4

Compression:

Stored size: 792 Bytes

Contents

require 'active_support/configurable'
require 'active_support/core_ext/module/delegation'
require 'graphql'
require 'graphql/models_connect'
require_relative 'filters/version'
require_relative 'filters/utility/cached_class'

module GraphQL
  module Filters
    # This will one day be a separate gem, and in that moment we will change this reference accordingly
    CachedClass = Utility::CachedClass
    private_constant :CachedClass

    include ActiveSupport::Configurable

    config.base_input_object_class = GraphQL::Schema::InputObject

    singleton_class.delegate(*config.keys, to: :config)
  end
end

# These need to be here, after the definition of GraphQL::Filters

require_relative 'filters/activerecord_patch'
require_relative 'filters/dsl'
require_relative 'filters/filterable'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
graphql-filters-1.0.7 lib/graphql/filters.rb
graphql-filters-1.0.6 lib/graphql/filters.rb
graphql-filters-1.0.5 lib/graphql/filters.rb
graphql-filters-1.0.4 lib/graphql/filters.rb