Module: GraphQL::Schema::Member::BaseDSLMethods::ConfigurationExtension
- Included in:
- GraphQL::Schema::Member
- Defined in:
- lib/graphql/schema/member/base_dsl_methods.rb
Overview
This pushes some configurations down the inheritance tree, in order to prevent repetitive lookups at runtime.
@requires_ancestor: Module @requires_ancestor: GraphQL::Schema::Member::BaseDSLMethods
Instance Method Summary collapse
Instance Method Details
#inherited(child_class) ⇒ Object
94 95 96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/graphql/schema/member/base_dsl_methods.rb', line 94 def inherited(child_class) child_class.introspection(introspection) child_class.description(description) child_class.comment(nil) child_class.default_graphql_name = nil if defined?(@graphql_name) && @graphql_name && (self.name.nil? || graphql_name != default_graphql_name) child_class.graphql_name(graphql_name) else child_class.graphql_name = nil end super end |