From 753bf8499ba5d8815db8d08a1dcf69caa20660cf Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Sat, 1 Apr 2023 12:00:33 -0600 Subject: Mejora estructura del proyecto --- app/controllers/serializers/product_serializer.rb | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 app/controllers/serializers/product_serializer.rb (limited to 'app/controllers/serializers/product_serializer.rb') diff --git a/app/controllers/serializers/product_serializer.rb b/app/controllers/serializers/product_serializer.rb deleted file mode 100644 index 7fb2874..0000000 --- a/app/controllers/serializers/product_serializer.rb +++ /dev/null @@ -1,19 +0,0 @@ -# frozen_string_literal: true - -module Serializers - # ProductSerializer - class ProductSerializer < BaseSerializer - include Rails.application.routes.url_helpers - extend ActionView::RoutingUrlFor - - attributes :name, :public_id, :unitary_price, :bulk_price, :available_quantity, :categories - - attribute :picture do |object| - object.picture.url - end - - attribute :company do |object| - { name: object.company_name, short_name: object.company_short_name } - end - end -end -- cgit v1.2.3