Class: RightnowOms::CartsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- RightnowOms::CartsController
- Defined in:
- app/controllers/rightnow_oms/carts_controller.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
13 14 15 16 17 |
# File 'app/controllers/rightnow_oms/carts_controller.rb', line 13 def destroy @cart.destroy if has_cart? head :ok end |
#show ⇒ Object
6 7 8 9 10 11 |
# File 'app/controllers/rightnow_oms/carts_controller.rb', line 6 def show respond_to do |format| format.html { render :show, layout: 'rightnow_oms/cart' } format.json { render_for_api :default, json: @cart, root: :cart, status: :ok } end end |