Module: Workarea::Admin::Discounts::Products
- Included in:
- BuySomeGetSomeViewModel, FreeGiftViewModel, ProductViewModel, QuantityFixedPriceViewModel
- Defined in:
- app/view_models/workarea/admin/discounts/products.rb
Instance Method Summary collapse
Instance Method Details
#products ⇒ Object
5 6 7 8 9 |
# File 'app/view_models/workarea/admin/discounts/products.rb', line 5 def products @products ||= product_ids.map do |id| Catalog::Product.where(id: id).first end.compact end |