super-graph/rails-app/app/views/products/index.json.jbuilder

2 lines
65 B
Ruby

json.array! @products, partial: 'products/product', as: :product