trustieforge/app/views/roles/index.api.rsb

9 lines
124 B
Plaintext

api.array :roles do
@roles.each do |role|
api.role do
api.id role.id
api.name role.name
end
end
end