Class: Workarea::Api::Storefront::RecommendationsController
- Inherits:
-
ApplicationController
- Object
- Workarea::ApplicationController
- ApplicationController
- Workarea::Api::Storefront::RecommendationsController
- Defined in:
- app/controllers/workarea/api/storefront/recommendations_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Methods included from UserActivity
#assert_current_user_activity_id, #current_user_activity_id, #user_activity
Methods included from Authentication
#authentication?, #current_user
Instance Method Details
#show ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'app/controllers/workarea/api/storefront/recommendations_controller.rb', line 7 def show fresh_when( etag: user_activity, last_modified: user_activity.updated_at, public: true ) @recommendations = Workarea::Storefront::PersonalizedRecommendationsViewModel.new( user_activity, ) end |