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

5 lines
178 B
Ruby

json.array!(@bills) do |bill|
json.extract! bill, :id, :client_id, :title, :description, :amount, :paid, :emission_date, :due_date
json.url bill_url(bill, format: :json)
end