9b65d4bb41
- All definitions have been replaced by classes: http://graphql-ruby.org/schema/class_based_api.html - Authorization & Presentation have been refactored to work in the class based system - Loaders have been replaced by resolvers - Times are now coersed as ISO 8601
20 lines
402 B
Ruby
20 lines
402 B
Ruby
module Gitlab
|
|
module Graphql
|
|
module Present
|
|
extend ActiveSupport::Concern
|
|
prepended do
|
|
def self.present_using(kls)
|
|
@presenter_class = kls
|
|
end
|
|
|
|
def self.presenter_class
|
|
@presenter_class
|
|
end
|
|
end
|
|
|
|
def self.use(schema_definition)
|
|
schema_definition.instrument(:field, Instrumentation.new)
|
|
end
|
|
end
|
|
end
|
|
end
|