Skip to content

Commit

Permalink
Create show.json.jbuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Sep 20, 2024
1 parent 6c7b3db commit 4f9d397
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
json.extract! @transaction, :id, :amount, :transaction_type, :created_at
json.account do
json.extract! @transaction.account, :id, :account_number, :routing_number
end
json.user do
json.extract! @transaction.account.user, :id, :username, :email
end
json.category do
json.extract! @transaction.category, :id, :name
end
json.receipt_url @transaction.receipt_url
json.transaction_status @transaction.transaction_status

0 comments on commit 4f9d397

Please sign in to comment.