5 lines
178 B
Ruby
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
|