Class: Cats::Core::PurchaseOrdersController
- Inherits:
-
ApplicationController
- Object
- ActionController::API
- ApplicationController
- Cats::Core::PurchaseOrdersController
- Includes:
- Common
- Defined in:
- app/controllers/cats/core/purchase_orders_controller.rb
Instance Method Summary collapse
Methods included from Common
Methods inherited from ApplicationController
#authenticate, #current_user, #skip_bullet
Instance Method Details
#index ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'app/controllers/cats/core/purchase_orders_controller.rb', line 6 def index purchase_orders = Cats::Core::PurchaseOrder.where(cash_donation_id: params[:id]).includes( :commodity_category, :unit, :currency ) render json: {success: true, data: serialize(purchase_orders)} end |