Sha256: 1a225e15f8991feb90002a42af843445726eca9427c66696dff8761268661c72
Contents?: true
Size: 431 Bytes
Versions: 1
Compression:
Stored size: 431 Bytes
Contents
module Workarea decorate Storefront::ContentBlocks::ProductListViewModel, with: :flow_io do # TODO base bug, product isn't passing options into product view models def products return [] unless data['products'].present? @products ||= Catalog::Product .find_ordered_for_display(data['products']) .map { |product| Storefront::ProductViewModel.wrap(product, options) } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
workarea-flow_io-1.2.1 | app/view_models/workarea/storefront/content_blocks/product_list_view_model.decorator |