Class: Dscf::Marketplace::SupplierProductsController
- Inherits:
-
ApplicationController
- Object
- ActionController::API
- ApplicationController
- Dscf::Marketplace::SupplierProductsController
- Includes:
- Core::Common
- Defined in:
- app/controllers/dscf/marketplace/supplier_products_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
#bypass_permissions_for_demo?, #pundit_user
Instance Method Details
#my_products ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'app/controllers/dscf/marketplace/supplier_products_controller.rb', line 6 def my_products @clazz.new, :my_products? service = MyResourceService.new(current_user) products = service.my_products(params) = { include: default_serializer_includes[:index] || [], meta: {resource_type: "my_products"} } render_success("supplier_products.success.index", data: products, serializer_options: ) end |