Sha256: b648a542b8707d5930e8450b3979b93b63efb3360c4bf1503e4ad269c892f554
Contents?: true
Size: 784 Bytes
Versions: 6
Compression:
Stored size: 784 Bytes
Contents
class Admin::BaseController < Spree::BaseController helper :search layout 'admin' before_filter :initialize_product_admin_tabs before_filter :initialize_order_admin_tabs before_filter :initialize_extension_tabs before_filter :add_shipments_tab private def add_extension_admin_tab(tab_args) @extension_tabs << tab_args end def initialize_extension_tabs @extension_tabs = [] end def add_shipments_tab @order_admin_tabs << {:name => 'Shipments', :url => "admin_order_shipments_url"} end #used to add tabs / partials to product admin interface def initialize_product_admin_tabs @product_admin_tabs = [] end #used to add tabs / partials to order admin interface def initialize_order_admin_tabs @order_admin_tabs = [] end end
Version data entries
6 entries across 6 versions & 2 rubygems