Module: ActionModelContext::Primitive
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/action_model_context/primitive.rb
Overview
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
The context of the request: what the controller's
mcp_contextreturned.
Class Method Summary collapse
-
.description(text = nil) ⇒ String?
Declares the description, or reads it: a declared value wins over I18n.
-
.title(text = nil) ⇒ String?
Declares the title, or reads it: a declared value wins over I18n.
Instance Attribute Details
#context ⇒ Object (readonly)
The context of the request: what the controller's mcp_context returned.
Class Method Details
.description(text = nil) ⇒ String?
Declares the description, or reads it: a declared value wins over I18n.
.title(text = nil) ⇒ String?
Declares the title, or reads it: a declared value wins over I18n.