Refactor embedding to a Concern

This commit is contained in:
Matt-Yorkley
2021-12-25 11:01:44 +00:00
parent 4649698fc4
commit dfbd384c95
15 changed files with 53 additions and 35 deletions

View File

@@ -106,12 +106,6 @@ class ApplicationController < ActionController::Base
session[:shopfront_redirect]
end
def enable_embedded_shopfront
embed_service = EmbeddedPageService.new(params, session, request, response)
embed_service.embed!
@shopfront_layout = 'embedded' if embed_service.use_embedded_layout?
end
def action
params[:action].to_sym
end