summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-04-01 12:48:28 -0600
committerHombreLaser <sebastian-440@live.com>2023-04-01 12:48:28 -0600
commitbd3a6121c068f871dc5bd40c79c052e33fcd330e (patch)
treecf2a660f43ae0e2a823a662bc65c8dd193ac8d70
parent753bf8499ba5d8815db8d08a1dcf69caa20660cf (diff)
Añade serializador de ProductReview
-rw-r--r--app/serializers/product_review_serializer.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/serializers/product_review_serializer.rb b/app/serializers/product_review_serializer.rb
new file mode 100644
index 0000000..15b8937
--- /dev/null
+++ b/app/serializers/product_review_serializer.rb
@@ -0,0 +1,6 @@
+# frozen_string_literal: true
+
+# ProductReviewSerializer
+class ProductReview < BaseSerializer
+ attributes :review, :rating, :author_name
+end