Module: Kaui::ErrorHandler
- Extended by:
- ActiveSupport::Concern
- Includes:
- EngineControllerUtil
- Included in:
- EngineController
- Defined in:
- lib/kaui/error_handler.rb
Constant Summary
Constants included from EngineControllerUtil
Kaui::EngineControllerUtil::MAXIMUM_NUMBER_OF_RECORDS_DOWNLOAD, Kaui::EngineControllerUtil::SIMPLE_PAGINATION_THRESHOLD
Instance Method Summary collapse
Instance Method Details
#perform_redirect_after_error(redirect: true) ⇒ Object
28 29 30 31 32 33 34 35 |
# File 'lib/kaui/error_handler.rb', line 28 def perform_redirect_after_error(redirect: true) account_id = nested_hash_value(params.permit!.to_h, :account_id) if redirect && account_id.present? redirect_to kaui_engine.account_path(account_id) else redirect_to kaui_engine.home_path end end |