Sha256: dc6d05f1192c215e30f6eeedfc9ee56660a4e66022eb4bccf585a983c1bb0573
Contents?: true
Size: 1.03 KB
Versions: 1
Compression:
Stored size: 1.03 KB
Contents
class Admin::Shop::CustomersController < Admin::ResourceController model_class ShopCustomer before_filter :config_global before_filter :config_new, :only => [ :new, :create ] before_filter :config_edit, :only => [ :edit, :update ] before_filter :assets_global before_filter :assets_index, :only => [ :index ] before_filter :assets_edit, :only => [ :edit, :update ] private def config_global @meta ||= [] @buttons ||= [] @parts ||= [] @popups ||= [] end def config_new @meta << 'login' @meta << 'password' @meta << 'password_confirmation' end def config_edit @meta << 'login' @meta << 'password' @meta << 'password_confirmation' @parts << 'orders' @parts << 'addresses' end def assets_global include_stylesheet 'admin/extensions/shop/edit' include_stylesheet 'admin/extensions/shop/index' end def assets_index end def assets_edit end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
radiant-shop-extension-0.10.0 | app/controllers/admin/shop/customers_controller.rb |