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