Sha256: 69fa1e3116c5c3311c8e0a20b678088d45abcd3b095f2acecfd466f8d6ef2e08
Contents?: true
Size: 516 Bytes
Versions: 19
Compression:
Stored size: 516 Bytes
Contents
# frozen_string_literal: true class HomeController < ApplicationController include ShopifyApp::EmbeddedApp include ShopifyApp::EnsureInstalled 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
19 entries across 19 versions & 1 rubygems