graphql 2.0.19 → 2.0.20

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,27 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module GraphQL
4
- module Types
5
- module Relay
6
- module DefaultRelay
7
- def self.extended(child_class)
8
- child_class.default_relay(true)
9
- end
10
-
11
- def default_relay(new_value)
12
- @default_relay = new_value
13
- end
14
-
15
- def default_relay?
16
- if defined?(@default_relay)
17
- @default_relay
18
- elsif self.is_a?(Class)
19
- superclass.respond_to?(:default_relay?) && superclass.default_relay?
20
- else
21
- false
22
- end
23
- end
24
- end
25
- end
26
- end
27
- end