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/api/products_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/controllers/api/products_controller.rb') diff --git a/app/controllers/api/products_controller.rb b/app/controllers/api/products_controller.rb index 5fa7763..5ebd6b6 100644 --- a/app/controllers/api/products_controller.rb +++ b/app/controllers/api/products_controller.rb @@ -55,11 +55,11 @@ module Api end def serialized_object(public_id) - Serializers::ProductSerializer.new(scope.find_by(public_id:)) + ProductSerializer.new(scope.find_by(public_id:)) end def serialized_collection - Serializers::ProductSerializer.new(scope.page(params[:page])) + ProductSerializer.new(scope.page(params[:page])) end def permitted_params -- cgit v1.2.3