Sha256: 2301a3910eb374bfebc42251333297dbd13ef82c1dd606e47f000441208be1f4

Contents?: true

Size: 360 Bytes

Versions: 28

Compression:

Stored size: 360 Bytes

Contents

module Workarea
  module Admin
    class RecommendationsViewModel < ApplicationViewModel
      def sources_display
        t('workarea.admin.recommendations.sources')
      end

      def products
        @products ||= Catalog::Product.find_ordered(product_ids).map do |product|
          ProductViewModel.wrap(product)
        end
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
workarea-admin-3.5.6 app/view_models/workarea/admin/recommendations_view_model.rb
workarea-admin-3.5.5 app/view_models/workarea/admin/recommendations_view_model.rb
workarea-admin-3.5.4 app/view_models/workarea/admin/recommendations_view_model.rb
workarea-admin-3.5.3 app/view_models/workarea/admin/recommendations_view_model.rb
workarea-admin-3.5.2 app/view_models/workarea/admin/recommendations_view_model.rb
workarea-admin-3.5.1 app/view_models/workarea/admin/recommendations_view_model.rb
workarea-admin-3.5.0 app/view_models/workarea/admin/recommendations_view_model.rb
workarea-admin-3.5.0.beta.1 app/view_models/workarea/admin/recommendations_view_model.rb