Class: Types::UserPreferencesType

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

Instance Method Summary collapse

Methods inherited from BaseObject

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

Methods included from Gitlab::Graphql::Present

#present, #unpresented

Instance Method Details

#issues_sortObject



47
48
49
# File 'app/graphql/types/user_preferences_type.rb', line 47

def issues_sort
  user_preference.issues_sort&.to_sym
end

#organization_groups_projects_sortObject



51
52
53
# File 'app/graphql/types/user_preferences_type.rb', line 51

def organization_groups_projects_sort
  user_preference.organization_groups_projects_sort&.to_sym
end