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

Version Path
effective_orders-1.5.7 active_admin/effective_carts.rb
effective_orders-1.5.5 active_admin/effective_carts.rb
effective_orders-1.5.4 active_admin/effective_carts.rb
effective_orders-1.5.3 active_admin/effective_carts.rb
effective_orders-1.5.2 active_admin/effective_carts.rb
effective_orders-1.5.1 active_admin/effective_carts.rb
effective_orders-1.5.0 active_admin/effective_carts.rb
effective_orders-1.4.8 active_admin/effective_carts.rb