Class: Phlex::Reactive::ActionContext
- Inherits:
-
Data
- Object
- Data
- Phlex::Reactive::ActionContext
- Defined in:
- lib/phlex/reactive.rb
Overview
What a component-aware around_action wrapper sees (issue #112). Frozen: a wrapper OBSERVES the resolved action — it must not mutate the context to widen invokability (the token verify, component resolution, default-deny, and schema coercion have already run and are not negotiable here).
- component — the resolved, identity-rebuilt component instance
- action_name — the declared action Symbol about to run
- params — the SCHEMA-COERCED params (dropped keys already gone)
- request — the ActionDispatch::Request (remote_ip, headers, ...)
Instance Attribute Summary collapse
-
#action_name ⇒ Object
readonly
Returns the value of attribute action_name.
-
#component ⇒ Object
readonly
Returns the value of attribute component.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
Instance Attribute Details
#action_name ⇒ Object (readonly)
Returns the value of attribute action_name
110 111 112 |
# File 'lib/phlex/reactive.rb', line 110 def action_name @action_name end |
#component ⇒ Object (readonly)
Returns the value of attribute component
110 111 112 |
# File 'lib/phlex/reactive.rb', line 110 def component @component end |
#params ⇒ Object (readonly)
Returns the value of attribute params
110 111 112 |
# File 'lib/phlex/reactive.rb', line 110 def params @params end |
#request ⇒ Object (readonly)
Returns the value of attribute request
110 111 112 |
# File 'lib/phlex/reactive.rb', line 110 def request @request end |