Module: ShopifyApp::RequireKnownShop

Extended by:
ActiveSupport::Concern
Included in:
HomeController
Defined in:
app/controllers/concerns/shopify_app/require_known_shop.rb

Instance Method Summary collapse

Instance Method Details

#current_shopify_domainObject



12
13
14
15
# File 'app/controllers/concerns/shopify_app/require_known_shop.rb', line 12

def current_shopify_domain
  return if params[:shop].blank?
  @shopify_domain ||= ShopifyApp::Utils.sanitize_shop_domain(params[:shop])
end