zeitwerk: Api -> API

This commit is contained in:
Pierre de La Morinerie 2020-08-05 16:40:47 +00:00
parent 482f990594
commit 150ddab660
82 changed files with 235 additions and 217 deletions

View file

@ -1,4 +1,4 @@
class Api::V2::Context < GraphQL::Query::Context
class API::V2::Context < GraphQL::Query::Context
def has_fragment?(name)
if self["has_fragment_#{name}"]
true

View file

@ -1,4 +1,4 @@
class Api::V2::Schema < GraphQL::Schema
class API::V2::Schema < GraphQL::Schema
default_max_page_size 100
max_complexity 300
max_depth 15
@ -6,7 +6,7 @@ class Api::V2::Schema < GraphQL::Schema
query Types::QueryType
mutation Types::MutationType
context_class Api::V2::Context
context_class API::V2::Context
def self.id_from_object(object, type_definition, ctx)
object.to_typed_id