Class: Types::EventType

Inherits:
BaseObject
  • Object
show all
Defined in:
app/graphql/types/event_type.rb

Instance Method Summary collapse

Methods inherited from BaseObject

accepts, assignable?, authorization, authorize, authorized?, #current_user, #id

Methods included from Gitlab::Graphql::Present

#present, #unpresented

Instance Method Details

#authorObject


32
33
34
# File 'app/graphql/types/event_type.rb', line 32

def author
  Gitlab::Graphql::Loaders::BatchModelLoader.new(User, object.author_id).find
end