-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
We could avoid having to compile the activity with every invocation of step
by "marking" the activity as final in the end, which then could trigger compilation (and much better error handling).
class Create < Trailblazer::Operation(finalize: true)
step :a
step :b
end.finalize!
When using an extendable loader such as dry-system
(or maybe even zeitwerk
supports that?) you could add a "loaded" callback that calls activity_class.finalize!
automatically.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request