Module: Workarea::FeaturedBrowseOptionProducts
- Defined in:
- app/models/workarea/featured_browse_option_products.rb
Instance Method Summary collapse
Instance Method Details
#featured_product?(id) ⇒ Boolean
3 4 5 6 7 |
# File 'app/models/workarea/featured_browse_option_products.rb', line 3 def featured_product?(id) product_ids.any? do |product_id| product_id == id || BrowseOptionIds.extract(product_id) == id end end |
#unique_product_ids ⇒ Object
9 10 11 |
# File 'app/models/workarea/featured_browse_option_products.rb', line 9 def unique_product_ids product_ids.map { |id| BrowseOptionIds.extract(id) }.uniq end |