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