Sha256: 84f6d15f45ff4023cba32734856f8fb08d8d0d225656dce8b5024fe15dd3b99e
Contents?: true
Size: 1.04 KB
Versions: 7
Compression:
Stored size: 1.04 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 @inputs ||= [] @meta ||= [] @buttons ||= [] @parts ||= [] @popups ||= [] @inputs << 'name' @inputs << 'email' @meta << 'login' @meta << 'password' @meta << 'password_confirmation' end def config_new end def config_edit @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
7 entries across 7 versions & 1 rubygems