diff --git a/app/helpers/product_category_viewer_helper.rb b/app/helpers/product_category_viewer_helper.rb deleted file mode 100644 index fb08b02..0000000 --- a/app/helpers/product_category_viewer_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ProductCategoryViewerHelper -end diff --git a/app/models/product_categorization.rb b/app/models/product_categorization.rb deleted file mode 100644 index 3185b3e..0000000 --- a/app/models/product_categorization.rb +++ /dev/null @@ -1,13 +0,0 @@ -class ProductCategorization < ActiveRecord::Base - belongs_to :product_category, :foreign_key => 'category_id' - belongs_to :product - - extend Categorization - - class << self - alias :add_category_to_product :add_category_to_object - def object_id_column - :product_id - end - end -end diff --git a/app/views/search/_product_categories_menu.rhtml b/app/views/search/_product_categories_menu.rhtml deleted file mode 100644 index 91defed..0000000 --- a/app/views/search/_product_categories_menu.rhtml +++ /dev/null @@ -1,42 +0,0 @@ -<% if @product_category %> -

- <%= @product_category.hierarchy.map {|cat| ((cat == @product_category) ? content_tag('span', cat.name) : link_to((cat.name), params.merge({:product_category => cat.id}))) }.join(' → ') %> -

-<% end %> - -<% if product_categories_menu %> - -
- -
- -<% end %> - diff --git a/db/migrate/20110814172228_drop_product_categorization.rb b/db/migrate/20110814172228_drop_product_categorization.rb new file mode 100644 index 0000000..83b8e34 --- /dev/null +++ b/db/migrate/20110814172228_drop_product_categorization.rb @@ -0,0 +1,9 @@ +class DropProductCategorization < ActiveRecord::Migration + def self.up + drop_table :product_categorizations + end + + def self.down + say "this migration can't be reverted" + end +end -- libgit2 0.21.2