Class: HomeController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- HomeController
- Defined in:
- lib/generators/pontiac/templates/app/controllers/home_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/generators/pontiac/templates/app/controllers/home_controller.rb', line 4 def index if signed_in? current_shop.use_kitpay @orders = Kitpay.orders per_page: 3 @products = Kitpay.products per_page: 5 else redirect_to login_path end end |