Class: Workarea::Storefront::RecentViewsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Workarea::Storefront::RecentViewsController
- Defined in:
- app/controllers/workarea/storefront/recent_views_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
#current_layout, #current_user_info, #health_check, #layout_content
Methods included from OrderLookup
Methods included from CurrentCheckout
#clear_current_order, #completed_order, #completed_order=, #current_checkout, #current_order, #current_order=, #current_shipping, #current_shippings, #logout
Instance Method Details
#show ⇒ Object
5 6 7 8 9 10 |
# File 'app/controllers/workarea/storefront/recent_views_controller.rb', line 5 def show if stale?(etag: current_metrics, last_modified: current_metrics.updated_at) @recent_views = Storefront::UserActivityViewModel.new(current_metrics, ) render params[:view].in?(allowed_alt_views) ? params[:view] : :show end end |