Module: ShopifyApp::EnsureInstalled
- Extended by:
- ActiveSupport::Concern
- Includes:
- RedirectForEmbedded
- Included in:
- HomeController, RequireKnownShop
- Defined in:
- app/controllers/concerns/shopify_app/ensure_installed.rb
Instance Method Summary collapse
Instance Method Details
#current_shopify_domain ⇒ Object
22 23 24 25 26 27 28 29 30 31 |
# File 'app/controllers/concerns/shopify_app/ensure_installed.rb', line 22 def current_shopify_domain if params[:shop].blank? ShopifyApp::Logger.info("Could not identify installed store from current_shopify_domain") return end @shopify_domain ||= ShopifyApp::Utils.sanitize_shop_domain(params[:shop]) ShopifyApp::Logger.info("Installed store: #{@shopify_domain} - deduced from Shopify Admin params") @shopify_domain end |