Module: Magik::Action
- Defined in:
- lib/magik/action.rb
Overview
Mutation handlers, auto-wired to htmx POST requests.
Implements: Phase 2 — Rendering & Actions of docs/idea/00-build-spec.md.
Planned DSL surface, copied from the spec:
* `action :name do |params| ... end`
* `idempotent_by on actions — dedupes retried mutations`
Status: Not implemented — spec only. Every entry point below raises NotImplementedError. Nothing here reads config, touches a database or emits a byte of HTML.
Constant Summary collapse
- SPEC_PHASE =
The build-spec phase this subsystem implements.
"Phase 2 — Rendering & Actions"- DSL_SURFACE =
The DSL this subsystem will expose, verbatim from the spec.
[ "action :name do |params| ... end", "idempotent_by on actions — dedupes retried mutations" ].freeze
- STATUS =
Implementation status of this subsystem.
"Not implemented — spec only"
Class Method Summary collapse
-
.define(*_args, **_options) ⇒ void
Entry point for the Action DSL.
Class Method Details
.define(*_args, **_options) ⇒ void
This method returns an undefined value.
Entry point for the Action DSL.
40 41 42 |
# File 'lib/magik/action.rb', line 40 def self.define(*_args, **) raise NotImplementedError, "Magik::Action is spec-only; see docs/idea/00-build-spec.md" end |