MorningPeak/app/views/contacts/index.json.jbuilder
Arthur Poulet 7838150f59 remove contact.last_contact, fix contact.view_at
all this modifications re done in contact
- rename the column last_contact to view_at
- fix view
- add a link in /contact/index to update the view date
2015-07-18 16:12:19 +02:00

5 lines
214 B
Ruby

json.array!(@contacts) do |contact|
json.extract! contact, :id, :client_id, :name, :phone, :email, :view_at, :note, :region, :department, :postal_code, :address
json.url contact_url(contact, format: :json)
end