MorningPeak/app/views/clients/index.json.jbuilder
2015-06-16 20:17:16 +02:00

5 lines
166 B
Ruby

json.array!(@clients) do |client|
json.extract! client, :id, :name, :url, :activity, :contact_reasons, :contact_id
json.url client_url(client, format: :json)
end