Sha256: 32cd0851e7206de7ca74b046809f92e2bf973093ef96bc3ea24181a3be744251
Contents?: true
Size: 1.15 KB
Versions: 5
Compression:
Stored size: 1.15 KB
Contents
class Admin::Shop::OrdersController < Admin::ResourceController model_class ShopOrder before_filter :config_global before_filter :config_index, :only => [ :index ] 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 ||= [] end def config_index @buttons << 'shipped' @buttons << 'paid' @buttons << 'new' @buttons << 'all' end def config_new end def config_edit @parts << 'items' @parts << 'addresses' if @shop_order.billing.present? @parts << 'customer' if @shop_order.customer.present? 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
5 entries across 5 versions & 1 rubygems