Class: Panda::Core::Admin::DashboardController
- Inherits:
-
BaseController
- Object
- ActionController::Base
- BaseController
- Panda::Core::Admin::DashboardController
- Defined in:
- app/controllers/panda/core/admin/dashboard_controller.rb
Instance Method Summary collapse
-
#show ⇒ Object
Authentication is automatically enforced by AdminController.
Methods inherited from BaseController
#add_breadcrumb, #authenticate_admin_user!, #authenticate_user!, #breadcrumbs, #current_user, #set_current_request_details, #user_signed_in?
Instance Method Details
#show ⇒ Object
Authentication is automatically enforced by AdminController
9 10 11 12 13 14 15 16 17 18 19 |
# File 'app/controllers/panda/core/admin/dashboard_controller.rb', line 9 def show # If a custom dashboard path is configured, redirect there if Panda::Core.config.dashboard_redirect_path redirect_path = Panda::Core.config.dashboard_redirect_path redirect_path = redirect_path.call if redirect_path.respond_to?(:call) redirect_to redirect_path else # Render the dashboard view render :show end end |