Class: RightnowOms::CartsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/rightnow_oms/carts_controller.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject



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

#showObject



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