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

10 lines
167 B
Plaintext

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