Sha256: 13f1088997c08c9532381fbe4237505d7a633469f0b244f2b86d3a33c0aceba9
Contents?: true
Size: 337 Bytes
Versions: 2
Compression:
Stored size: 337 Bytes
Contents
module Workarea decorate Search::ProductEntries, with: :product_bundles do def index_entries_for(product) return super unless product.bundle? if product.kit? return Search::Storefront::ProductKit.new(product) else return Search::Storefront::ProductBundle.new(product) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
workarea-product_bundles-1.0.1 | app/queries/workarea/search/product_entries.decorator |
workarea-product_bundles-1.0.0 | app/queries/workarea/search/product_entries.decorator |