Permalink
Browse files

move deface to override directory

  • Loading branch information...
1 parent fa7b033 commit 19cc8b2bfceedcbbee15013d6518004a686e1fdb @libkazz committed Oct 1, 2012
Showing with 5 additions and 7 deletions.
  1. +5 −0 app/overrides/import_products_navigation_bar.rb
  2. +0 −1 lib/import_products.rb
  3. +0 −6 lib/import_products_hooks.rb
@@ -0,0 +1,5 @@
+Deface::Override.new(:virtual_path => "spree/layouts/admin",
+ :name => "products_import_navigation_bar",
+ :insert_bottom => "[data-hook='admin_tabs'], #admin_tabs[data-hook]",
+ :text => "<%= tab(:product_imports, :url => admin_product_imports_path) %>",
+ :disabled => false)
@@ -1,5 +1,4 @@
require 'spree_core'
-require 'import_products_hooks'
require 'delayed_job'
module ImportProducts
@@ -1,6 +0,0 @@
-class ImportProductsHooks < Spree::ThemeSupport::HookListener
- # custom hooks go here
- insert_after :admin_tabs do
- %(<%= tab(:product_imports) %>)
- end
-end

0 comments on commit 19cc8b2

Please sign in to comment.