summaryrefslogtreecommitdiffstats
path: root/app/views/roles/show.api.rsb
blob: 4e81819cff06dde572d74c5c4b21715b6db3ee22 (plain)
1
2
3
4
5
6
7
8
9
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