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-2.2.4 active_admin/effective_carts.rb
effective_orders-2.2.3 active_admin/effective_carts.rb
effective_orders-2.2.2 active_admin/effective_carts.rb
effective_orders-2.2.1 active_admin/effective_carts.rb
effective_orders-2.2.0 active_admin/effective_carts.rb
effective_orders-2.1.17 active_admin/effective_carts.rb
effective_orders-2.1.16 active_admin/effective_carts.rb
effective_orders-2.1.15 active_admin/effective_carts.rb
effective_orders-2.1.14 active_admin/effective_carts.rb
effective_orders-2.1.13 active_admin/effective_carts.rb
effective_orders-2.1.12 active_admin/effective_carts.rb
effective_orders-2.1.10 active_admin/effective_carts.rb
effective_orders-2.1.9 active_admin/effective_carts.rb
effective_orders-2.1.8 active_admin/effective_carts.rb
effective_orders-2.1.7 active_admin/effective_carts.rb
effective_orders-2.1.6 active_admin/effective_carts.rb
effective_orders-2.1.5 active_admin/effective_carts.rb
effective_orders-2.1.4 active_admin/effective_carts.rb
effective_orders-2.1.3 active_admin/effective_carts.rb
effective_orders-2.1.2 active_admin/effective_carts.rb