diff options
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 |