From d6c1a96506a91b63fbf11ff43eec8712ad7a619a Mon Sep 17 00:00:00 2001 From: "sentry-autofix[bot]" <157164994+sentry-autofix[bot]@users.noreply.github.com> Date: Tue, 7 Jan 2025 14:57:38 -0800 Subject: [PATCH] Add Active Model Serializers and Update Product Serialization (#655) Co-authored-by: sentry-autofix[bot] <157164994+sentry-autofix[bot]@users.noreply.github.com> --- react/src/components/Products.jsx | 8 ++++-- ruby-on-rails/Gemfile | 2 ++ .../controllers/api/v1/products_controller.rb | 28 +++++-------------- .../app/serializers/product_serializer.rb | 18 ++++++++++++ 4 files changed, 32 insertions(+), 24 deletions(-) create mode 100644 ruby-on-rails/app/serializers/product_serializer.rb diff --git a/react/src/components/Products.jsx b/react/src/components/Products.jsx index 4802e510..565dae03 100644 --- a/react/src/components/Products.jsx +++ b/react/src/components/Products.jsx @@ -134,11 +134,13 @@ function Products({ frontendSlowdown, backend, productsExtremelySlow, productsBe