Sha256: 8ae201cfc5b07d92a49324644a0b30dc1b1f5700fedbba61d40176dfc775d57d
Contents?: true
Size: 312 Bytes
Versions: 1
Compression:
Stored size: 312 Bytes
Contents
module Shopper class OrderItemController < ShopperController def destroy @item = OrderItem.find(params[:id]) authorize! :destroy, @item @item.destroy redirect_to cart_path rescue CanCan::AccessDenied redirect_to cart_path, alert: t('auth.access_denied') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shoppper-0.1.0 | app/controllers/shopper/order_item_controller.rb |