mohnish/money

View on GitHub
app/views/api/v1/payments/_show.json.jbuilder

Summary

Maintainability
Test Coverage
json.extract! payment, :id, :amount

json.payment_date payment.created_at

json.bill do
  json.extract! payment.bill, :id, :name, :amount
end

json.payment_source do
  json.extract! payment.payment_source, :id, :name, :type
end