Skip to content
Snippets Groups Projects
Commit dd760fd9 authored by Clarissa's avatar Clarissa
Browse files

SCRUM#282: fixing return role_ids from users

parent 85a3cd89
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,10 @@ class UserSerializer < ActiveModel::Serializer
object.learning_objects.where('state = ?', LearningObject.states[:published]).count
end
def role_ids
object.roles.all.ids
end
attributes \
:id,
:email,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment