pgfqe6ch8/app/views/roles/show.api.rsb

10 lines
167 B

api.role do
api.id @role.id
api.name @role.name
api.array :permissions do
@role.permissions.each do |perm|
api.permission(perm.to_s)
end
end
end