Sha256: e7621f12c22479500842728fef9a8b0bd32f64a006d10371f7057f9d1a5821c0
Contents?: true
Size: 380 Bytes
Versions: 48
Compression:
Stored size: 380 Bytes
Contents
if defined?(ActiveAdmin) ActiveAdmin.register Effective::Cart, namespace: EffectiveOrders.active_admin_namespace, as: 'Carts' do menu label: 'My Cart', if: proc { (authorized?(:manage, Effective::Cart.new(user: current_user)) rescue false) } actions :index controller do def index redirect_to(effective_orders.cart_path) end end end end
Version data entries
48 entries across 48 versions & 1 rubygems