Class: Admin::CustomersController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Admin::CustomersController
- Defined in:
- app/controllers/admin/customers_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'app/controllers/admin/customers_controller.rb', line 7 def index @datatable = EffectiveCustomersDatatable.new(self) @page_title = 'Customers' EffectiveOrders.(self, :admin, :effective_orders) EffectiveOrders.(self, :index, Effective::Customer) end |
#show ⇒ Object
16 17 18 19 20 21 |
# File 'app/controllers/admin/customers_controller.rb', line 16 def show @customer = Effective::Customer.find(params[:id]) @page_title ||= @customer.to_s EffectiveOrders.(self, :show, Effective::Customer) end |