agenda-libre-ruby/app/views/users/index.json.jbuilder

5 lines
135 B
Ruby

json.array!(@users) do |user|
json.extract! user, :login, :email, :lastname, :firstname
json.url user_url(user, format: :json)
end