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)
   = nested_hash_value(params.permit!.to_h, :account_id)
  if redirect && .present?
    redirect_to kaui_engine.()
  else
    redirect_to kaui_engine.home_path
  end
end