Class: Workarea::Admin::RecommendationsViewModel
- Inherits:
-
ApplicationViewModel
- Object
- ApplicationViewModel
- Workarea::Admin::RecommendationsViewModel
- Defined in:
- app/view_models/workarea/admin/recommendations_view_model.rb
Instance Method Summary collapse
Instance Method Details
#products ⇒ Object
8 9 10 11 12 |
# File 'app/view_models/workarea/admin/recommendations_view_model.rb', line 8 def products @products ||= Catalog::Product.find_ordered(product_ids).map do |product| ProductViewModel.wrap(product) end end |
#sources_display ⇒ Object
4 5 6 |
# File 'app/view_models/workarea/admin/recommendations_view_model.rb', line 4 def sources_display t('workarea.admin.recommendations.sources') end |