Module: RailsConsoleAi::BuiltinGuards::InProcessRequestBlocker
- Defined in:
- lib/rails_console_ai/safety_guards.rb
Overview
Blocks in-process HTTP dispatch against the running app itself.
An ActionDispatch::Integration::Session request (the console app helper,
or a manually built integration session) runs the app's full middleware
stack inside the current process and can deadlock or hang the session
thread indefinitely — so ALL verbs are blocked, including GET.
Instance Method Summary collapse
Instance Method Details
#process(*args, **kwargs, &block) ⇒ Object
373 374 375 376 |
# File 'lib/rails_console_ai/safety_guards.rb', line 373 def process(*args, **kwargs, &block) RailsConsoleAi::BuiltinGuards.check_in_process_request!(args[0], args[1]) super end |