mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-26 01:33:22 +00:00
Refactor embedding to a Concern
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user