Sha256: 0b6f6801e01ab01a56727c87fc380a2cf093661ccc9bbcda41f8d7f45dc29733

Contents?: true

Size: 561 Bytes

Versions: 31

Compression:

Stored size: 561 Bytes

Contents

module Admin
  class CustomersController < ApplicationController
    before_filter :authenticate_user!   # This is devise, ensure we're logged in.

    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

31 entries across 31 versions & 1 rubygems

Version Path
effective_orders-2.1.15 app/controllers/admin/customers_controller.rb
effective_orders-2.1.14 app/controllers/admin/customers_controller.rb
effective_orders-2.1.13 app/controllers/admin/customers_controller.rb
effective_orders-2.1.12 app/controllers/admin/customers_controller.rb
effective_orders-2.1.10 app/controllers/admin/customers_controller.rb
effective_orders-2.1.9 app/controllers/admin/customers_controller.rb
effective_orders-2.1.8 app/controllers/admin/customers_controller.rb
effective_orders-2.1.7 app/controllers/admin/customers_controller.rb
effective_orders-2.1.6 app/controllers/admin/customers_controller.rb
effective_orders-2.1.5 app/controllers/admin/customers_controller.rb
effective_orders-2.1.4 app/controllers/admin/customers_controller.rb
effective_orders-2.1.3 app/controllers/admin/customers_controller.rb
effective_orders-2.1.2 app/controllers/admin/customers_controller.rb
effective_orders-2.1.1 app/controllers/admin/customers_controller.rb
effective_orders-2.1.0 app/controllers/admin/customers_controller.rb
effective_orders-2.0.1 app/controllers/admin/customers_controller.rb
effective_orders-2.0.0 app/controllers/admin/customers_controller.rb
effective_orders-1.8.1 app/controllers/admin/customers_controller.rb
effective_orders-1.8.0 app/controllers/admin/customers_controller.rb
effective_orders-1.7.5 app/controllers/admin/customers_controller.rb