Sha256: dc520eaa97b2c3d4d0b5eceba78a7b174c404eb2cc224a2171cc774348e6f411

Contents?: true

Size: 483 Bytes

Versions: 59

Compression:

Stored size: 483 Bytes

Contents

module Admin
  class OrderItemsController < ApplicationController
    before_action :authenticate_user!

    layout (EffectiveOrders.layout.kind_of?(Hash) ? EffectiveOrders.layout[:admin_orders] : EffectiveOrders.layout)

    def index
      @datatable = EffectiveOrderItemsDatatable.new(self)

      @page_title = 'Order Items'

      EffectiveOrders.authorize!(self, :admin, :effective_orders)
      EffectiveOrders.authorize!(self, :index, Effective::OrderItem)
    end
  end
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
effective_orders-3.2.3 app/controllers/admin/order_items_controller.rb
effective_orders-3.2.2 app/controllers/admin/order_items_controller.rb
effective_orders-3.2.1 app/controllers/admin/order_items_controller.rb
effective_orders-4.4.1 app/controllers/admin/order_items_controller.rb
effective_orders-4.4.0 app/controllers/admin/order_items_controller.rb
effective_orders-4.3.2 app/controllers/admin/order_items_controller.rb
effective_orders-4.3.1 app/controllers/admin/order_items_controller.rb
effective_orders-3.2.0 app/controllers/admin/order_items_controller.rb
effective_orders-4.3.0 app/controllers/admin/order_items_controller.rb
effective_orders-4.2.7 app/controllers/admin/order_items_controller.rb
effective_orders-4.2.6 app/controllers/admin/order_items_controller.rb
effective_orders-4.2.5 app/controllers/admin/order_items_controller.rb
effective_orders-4.2.4 app/controllers/admin/order_items_controller.rb
effective_orders-4.2.3 app/controllers/admin/order_items_controller.rb
effective_orders-4.2.2 app/controllers/admin/order_items_controller.rb
effective_orders-3.1.7 app/controllers/admin/order_items_controller.rb
effective_orders-3.1.6 app/controllers/admin/order_items_controller.rb
effective_orders-4.2.1 app/controllers/admin/order_items_controller.rb
effective_orders-4.2.0 app/controllers/admin/order_items_controller.rb
effective_orders-3.1.4 app/controllers/admin/order_items_controller.rb