diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 9d3b96e3d..9db15bd21 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -17,6 +17,9 @@ class ApplicationController < ActionController::Base protect_from_forgery with: :exception, unless: -> { api_request? } + # @see https://til.hashrocket.com/posts/3exmhtwqy6-setting-the-urloptions-hash-in-the-controller + include ActiveStorage::SetCurrent + # Referenced in application layout to display page title # Override on a per-controller basis to display different title # @return [String] diff --git a/app/furniture/marketplace/cart_products/_cart_product.html.erb b/app/furniture/marketplace/cart_products/_cart_product.html.erb index ad0b7c30b..7cbdacc56 100644 --- a/app/furniture/marketplace/cart_products/_cart_product.html.erb +++ b/app/furniture/marketplace/cart_products/_cart_product.html.erb @@ -1,8 +1,19 @@ <%- product = cart_product.product %> <%- cart = cart_product.cart %> -