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

10 lines
167 B
Plaintext
Raw Normal View History

2013-08-01 10:33:49 +08:00
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