From 5868c1230bdfde7fa10d498a12e214df2722415c Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Wed, 22 Mar 2023 17:40:42 -0600 Subject: Arregla bugs del controlador de products --- app/controllers/serializers/product_serializer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/serializers') diff --git a/app/controllers/serializers/product_serializer.rb b/app/controllers/serializers/product_serializer.rb index 8e1ac11..7fb2874 100644 --- a/app/controllers/serializers/product_serializer.rb +++ b/app/controllers/serializers/product_serializer.rb @@ -6,7 +6,7 @@ module Serializers include Rails.application.routes.url_helpers extend ActionView::RoutingUrlFor - attributes :name, :unitary_price, :bulk_price, :available_quantity, :categories + attributes :name, :public_id, :unitary_price, :bulk_price, :available_quantity, :categories attribute :picture do |object| object.picture.url -- cgit v1.2.3