summaryrefslogtreecommitdiff
path: root/app/controllers/serializers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/serializers')
-rw-r--r--app/controllers/serializers/product_serializer.rb2
1 files changed, 1 insertions, 1 deletions
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