To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / users / index.api.rsb @ 443:350acce374a2

History | View | Annotate | Download (468 Bytes)

1
api.array :users, api_meta(:total_count => @user_count, :offset => @offset, :limit => @limit) do
2
  @users.each do |user|
3
    api.user do
4
      api.id         user.id
5
      api.login      user.login
6
      api.firstname  user.firstname
7
      api.lastname   user.lastname
8
      api.mail       user.mail
9
      api.created_on user.created_on
10
      api.last_login_on user.last_login_on
11

    
12
      render_api_custom_values user.visible_custom_field_values, api
13
    end
14
  end
15
end