Class: HasHelpers::BaseType

Inherits:
GraphQL::Schema::Object
  • Object
show all
Defined in:
app/graphql/has_helpers/base_type.rb

Instance Method Summary collapse

Instance Method Details

#current_organizationObject



5
6
7
# File 'app/graphql/has_helpers/base_type.rb', line 5

def current_organization
  context[:current_organization]
end

#current_userObject



9
10
11
# File 'app/graphql/has_helpers/base_type.rb', line 9

def current_user
  context[:current_user]
end