Module: ActionController::Current
- Defined in:
- runtime/action_controller/current.rb,
runtime/action_controller/current.rbs
Overview
Note:
The dispatcher writes both slots immediately before the action and clears them when it returns or raises.
Per-request values for code that has no controller instance to read them from.
Class Method Summary collapse
-
.controller ⇒ ActionController::API?
the controller parked for the current thread during the current action.
-
.controller=(value) ⇒ ActionController::API?
park the controller for the current thread.
-
.request ⇒ ActionDispatch::Request?
the request parked for the current thread during the current action.
-
.request=(value) ⇒ ActionDispatch::Request?
park the request for the current thread.
Class Method Details
.controller ⇒ ActionController::API?
the controller parked for the current thread during the current action.
52 |
# File 'runtime/action_controller/current.rb', line 52
def self.controller: () -> ActionController::API?
|
.controller=(value) ⇒ ActionController::API?
park the controller for the current thread.
60 |
# File 'runtime/action_controller/current.rb', line 60
def self.controller=: (ActionController::API? value) -> ActionController::API?
|
.request ⇒ ActionDispatch::Request?
the request parked for the current thread during the current action.
36 |
# File 'runtime/action_controller/current.rb', line 36
def self.request: () -> ActionDispatch::Request?
|
.request=(value) ⇒ ActionDispatch::Request?
park the request for the current thread.
44 |
# File 'runtime/action_controller/current.rb', line 44
def self.request=: (ActionDispatch::Request? value) -> ActionDispatch::Request?
|