Class: Kms::Shop::OrdersController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Kms::Shop::OrdersController
- Defined in:
- app/controllers/kms/shop/orders_controller.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
18 19 20 21 |
# File 'app/controllers/kms/shop/orders_controller.rb', line 18 def destroy @order = Kms::Order.find(params[:id]) @order.destroy end |
#index ⇒ Object
5 6 7 |
# File 'app/controllers/kms/shop/orders_controller.rb', line 5 def index render json: Order.order('created_at desc'), root: false, scope: current_kms_user end |