Sha256: a2c1626f34a80f7b81340b53ac13cc4189b42982fbba109c79cf86ae132d5cd3

Contents?: true

Size: 552 Bytes

Versions: 4

Compression:

Stored size: 552 Bytes

Contents

module Workarea
  module Api
    module Storefront
      class RecommendationsController < Api::Storefront::ApplicationController
        before_action :assert_current_user_activity_id

        def show
          fresh_when(
            etag: user_activity,
            last_modified: user_activity.updated_at,
            public: true
          )

          @recommendations = Workarea::Storefront::PersonalizedRecommendationsViewModel.new(
            user_activity,
            view_model_options
          )
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
workarea-api-4.4.7 storefront/app/controllers/workarea/api/storefront/recommendations_controller.rb
workarea-api-storefront-4.4.7 app/controllers/workarea/api/storefront/recommendations_controller.rb
workarea-api-4.4.6 storefront/app/controllers/workarea/api/storefront/recommendations_controller.rb
workarea-api-storefront-4.4.6 app/controllers/workarea/api/storefront/recommendations_controller.rb