Sha256: 4b6c073387dceb2b1196ea27bbdd8698052610493c9575399f2cb8280114ef96

Contents?: true

Size: 594 Bytes

Versions: 2

Compression:

Stored size: 594 Bytes

Contents

module Admin
  class CustomersController < ApplicationController
    respond_to?(:before_action) ? before_action(:authenticate_user!) : before_filter(:authenticate_user!) # Devise

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

    def index
      @datatable = Effective::Datatables::Customers.new() if defined?(EffectiveDatatables)
      @page_title = 'Customers'

      EffectiveOrders.authorized?(self, :admin, :effective_orders)
      EffectiveOrders.authorized?(self, :index, Effective::Customer)
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
effective_orders-2.1.17 app/controllers/admin/customers_controller.rb
effective_orders-2.1.16 app/controllers/admin/customers_controller.rb