summaryrefslogtreecommitdiffstats
path: root/app/views/groups/index.api.rsb
blob: 8ebad1baf76636bf6b5bf5ba8d14ed00216e8c35 (plain)
1
2
3
4
5
6
7
8
9
10
11
api.array :groups do
  @groups.each do |group|
    api.group do
      api.id         group.id
      api.name       group.lastname
      api.builtin    group.builtin_type if group.builtin_type

      render_api_custom_values group.visible_custom_field_values, api
    end
  end
end