Skip to content

Instantly share code, notes, and snippets.

@ekampp
Created July 28, 2023 17:18
Show Gist options
  • Save ekampp/72fcaec79470df91f82a968dcdd1257d to your computer and use it in GitHub Desktop.
Save ekampp/72fcaec79470df91f82a968dcdd1257d to your computer and use it in GitHub Desktop.
json.data do
json.partial! "board/items/item", locals: { item: @item }
end
json.meta do
json.receipt @receipt if @receipt.present?
json.genesis_address @item.genesis_address
json.short_address @item.short_address
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment