Sha256: c896f51115bf351a09e5002ded6c4d3df6822c19e63db98726fc4bf655aea9c7
Contents?: true
Size: 517 Bytes
Versions: 7
Compression:
Stored size: 517 Bytes
Contents
# frozen_string_literal: true class HomeController < ApplicationController include ShopifyApp::EmbeddedApp include ShopifyApp::RequireKnownShop include ShopifyApp::ShopAccessScopesVerification def index if ShopifyAPI::Context.embedded? && (!params[:embedded].present? || params[:embedded] != "1") redirect_to(ShopifyAPI::Auth.embedded_app_url(params[:host]) + request.path, allow_other_host: true) else @shop_origin = current_shopify_domain @host = params[:host] end end end
Version data entries
7 entries across 7 versions & 1 rubygems