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

SCRUM#282: loop over role_ids; change of strategy return roles from users

parent dd760fd9
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,9 @@ class UserSerializer < ActiveModel::Serializer
end
def role_ids
object.roles.all.ids
roles = []
object.roles.each { |role| puts roles << role.id }
roles
end
attributes \
......
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