Module: Workarea::Search::Storefront::Product::Categories
- Extended by:
- ActiveSupport::Concern
- Included in:
- Workarea::Search::Storefront::Product
- Defined in:
- app/models/workarea/search/storefront/product/categories.rb
Instance Method Summary collapse
-
#categorization ⇒ Array<Workarea::Categorization>
List of categories for the product.
-
#category_id ⇒ Array<String>
A list of the Catalog::Category IDs that the product was featured in.
Instance Method Details
#categorization ⇒ Array<Workarea::Categorization>
List of categories for the product.
44 45 46 47 |
# File 'app/models/workarea/search/storefront/product/categories.rb', line 44 def categorization return Workarea::Categorization.new if [:skip_categorization] @categorization ||= Workarea::Categorization.new(model) end |
#category_id ⇒ Array<String>
A list of the Catalog::Category IDs that the product was featured in. Used for adding featured products to category listings in addition to the products that match on rules.
36 37 38 |
# File 'app/models/workarea/search/storefront/product/categories.rb', line 36 def category_id categorization.manual end |