Sha256: 5846a03996af5fcac9b3f299de1fb03cd814a9b6fa447e21f95786a2edf0d448

Contents?: true

Size: 553 Bytes

Versions: 8

Compression:

Stored size: 553 Bytes

Contents

require 'active_support/concern'
require_relative '../../../input_types/numeric_comparison_input_type'

monkey_patch = Module.new do
  extend ActiveSupport::Concern

  class_methods do
  protected

    def get_comparison_input_type(*)
      GraphQL::Filters::InputTypes::NumericComparisonInputType[self]
    end
  end
end

GraphQL::Types::Int.prepend monkey_patch
GraphQL::Types::BigInt.prepend monkey_patch
GraphQL::Types::Float.prepend monkey_patch
GraphQL::Types::ISO8601Date.prepend monkey_patch
GraphQL::Types::ISO8601DateTime.prepend monkey_patch

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
graphql-filters-1.0.7 lib/graphql/filters/dsl/graphql/types/numeric.rb
graphql-filters-1.0.6 lib/graphql/filters/dsl/graphql/types/numeric.rb
graphql-filters-1.0.5 lib/graphql/filters/dsl/graphql/types/numeric.rb
graphql-filters-1.0.4 lib/graphql/filters/dsl/graphql/types/numeric.rb
graphql-filters-1.0.3 lib/graphql/filters/dsl/graphql/types/numeric.rb
graphql-filters-1.0.2 lib/graphql/filters/dsl/graphql/types/numeric.rb
graphql-filters-1.0.1 lib/graphql/filters/dsl/graphql/types/numeric.rb
graphql-filters-1.0.0 lib/graphql/filters/dsl/graphql/types/numeric.rb