Class: HomeController

Inherits:
ApplicationController
  • Object
show all
Includes:
ShopifyApp::EmbeddedApp, ShopifyApp::RequireKnownShop
Defined in:
lib/generators/shopify_app/home_controller/templates/home_controller.rb,
lib/generators/shopify_app/home_controller/templates/unauthenticated_home_controller.rb

Instance Method Summary collapse

Methods included from ShopifyApp::RequireKnownShop

#current_shopify_domain

Instance Method Details

#indexObject


4
5
6
7
# File 'lib/generators/shopify_app/home_controller/templates/home_controller.rb', line 4

def index
  @products = ShopifyAPI::Product.find(:all, params: { limit: 10 })
  @webhooks = ShopifyAPI::Webhook.find(:all)
end