Skip to content
Snippets Groups Projects
Commit 64def090 authored by Marcela Ribeiro de Oliveira's avatar Marcela Ribeiro de Oliveira
Browse files

Merge branch 'issue/282' into 'master'

SCRUM#282: fixing return role_ids from users

See merge request !461
parents 85a3cd89 049efa79
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.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