diff options
author | HombreLaser <sebastian-440@live.com> | 2023-04-01 12:00:33 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-04-01 12:00:33 -0600 |
commit | 753bf8499ba5d8815db8d08a1dcf69caa20660cf (patch) | |
tree | c758e18e3009f9c6da002164686e88956430847b /app/controllers/api/products_controller.rb | |
parent | 64214e370778dc3efdaca85acd0cd7a569a79b81 (diff) |
Mejora estructura del proyecto
Diffstat (limited to 'app/controllers/api/products_controller.rb')
-rw-r--r-- | app/controllers/api/products_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |