Class: HomeController

Inherits:
AuthenticatedController show all
Defined in:
lib/generators/duodealer_app/home_controller/templates/home_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



2
3
4
5
# File 'lib/generators/duodealer_app/home_controller/templates/home_controller.rb', line 2

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