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

Instance Method Details

#categorizationArray<Workarea::Categorization>

List of categories for the product.

Returns:



44
45
46
47
# File 'app/models/workarea/search/storefront/product/categories.rb', line 44

def categorization
  return Workarea::Categorization.new if options[:skip_categorization]
  @categorization ||= Workarea::Categorization.new(model)
end

#category_idArray<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.

Returns:



36
37
38
# File 'app/models/workarea/search/storefront/product/categories.rb', line 36

def category_id
  categorization.manual
end