Sha256: 9d4a750b9cabfcdf4b8957acfa85728ac28ecf24c6f0636bffac5de2959e8c56

Contents?: true

Size: 600 Bytes

Versions: 7

Compression:

Stored size: 600 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 :add_shipments_tab

private
  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

7 entries across 7 versions & 2 rubygems

Version Path
kdmny-spree-0.0.1 app/controllers/admin/base_controller.rb
spree-0.8.4 app/controllers/admin/base_controller.rb
spree-0.8.5 app/controllers/admin/base_controller.rb
spree-0.8.0 app/controllers/admin/base_controller.rb
spree-0.8.1 app/controllers/admin/base_controller.rb
spree-0.8.2 app/controllers/admin/base_controller.rb
spree-0.8.3 app/controllers/admin/base_controller.rb