From 07f56a9e1f37785dc0edbd3d3fe20df1dffdba72 Mon Sep 17 00:00:00 2001 From: "sentry-autofix[bot]" <157164994+sentry-autofix[bot]@users.noreply.github.com> Date: Tue, 7 Jan 2025 22:54:04 +0000 Subject: [PATCH] Add Active Model Serializers and Update Product Serialization --- 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