Sha256: e0a07adc984b35e5c701a4f4dffcdc08a5a05b8b3baf03cfb23f890b1583686b
Contents?: true
Size: 360 Bytes
Versions: 2
Compression:
Stored size: 360 Bytes
Contents
module RightnowOms class CartsController < ApplicationController before_filter :load_cart, only: [:show, :destroy] def show respond_to do |format| format.html format.json { render_for_api :default, json: @cart, root: :cart, status: :ok } end end def destroy @cart.destroy head :ok end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rightnow_oms-0.0.4 | app/controllers/rightnow_oms/carts_controller.rb |
rightnow_oms-0.0.3 | app/controllers/rightnow_oms/carts_controller.rb |