Class: HomeController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- HomeController
- 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
Instance Method Details
#index ⇒ Object
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 |