Sha256: 09d8c924f013f5dc54b71e41f7c02f161789184bd40cbeba980787d5c6745ab8

Contents?: true

Size: 665 Bytes

Versions: 59

Compression:

Stored size: 665 Bytes

Contents

module Admin
  class CustomersController < ApplicationController
    before_action :authenticate_user!

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

    def index
      @datatable = EffectiveCustomersDatatable.new(self)

      @page_title = 'Customers'

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

    def show
      @customer = Effective::Customer.find(params[:id])

      @page_title ||= @customer.to_s
      EffectiveOrders.authorize!(self, :show, Effective::Customer)
    end

  end
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
effective_orders-4.1.5 app/controllers/admin/customers_controller.rb
effective_orders-3.1.3 app/controllers/admin/customers_controller.rb
effective_orders-3.1.0 app/controllers/admin/customers_controller.rb
effective_orders-3.0.4 app/controllers/admin/customers_controller.rb
effective_orders-3.0.3 app/controllers/admin/customers_controller.rb
effective_orders-3.0.2 app/controllers/admin/customers_controller.rb
effective_orders-4.1.4 app/controllers/admin/customers_controller.rb
effective_orders-4.1.3 app/controllers/admin/customers_controller.rb
effective_orders-4.1.2 app/controllers/admin/customers_controller.rb
effective_orders-4.1.1 app/controllers/admin/customers_controller.rb
effective_orders-4.1.0 app/controllers/admin/customers_controller.rb
effective_orders-4.0.6 app/controllers/admin/customers_controller.rb
effective_orders-4.0.5 app/controllers/admin/customers_controller.rb
effective_orders-4.0.4 app/controllers/admin/customers_controller.rb
effective_orders-4.0.3 app/controllers/admin/customers_controller.rb
effective_orders-4.0.2 app/controllers/admin/customers_controller.rb
effective_orders-4.0.1 app/controllers/admin/customers_controller.rb
effective_orders-4.0.0 app/controllers/admin/customers_controller.rb
effective_orders-4.0.0beta19 app/controllers/admin/customers_controller.rb
effective_orders-4.0.0beta18 app/controllers/admin/customers_controller.rb