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
23 24 25 26 27 28 29 30 31 32 |
# File 'app/controllers/concerns/shopify_app/ensure_installed.rb', line 23 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 |
#installed_shop_session ⇒ Object
34 35 36 |
# File 'app/controllers/concerns/shopify_app/ensure_installed.rb', line 34 def installed_shop_session @installed_shop_session ||= SessionRepository.retrieve_shop_session_by_shopify_domain(current_shopify_domain) end |