Class: Granite::Action::Preconditions::EmbeddedPrecondition
- Inherits:
-
BasePrecondition
- Object
- BasePrecondition
- Granite::Action::Preconditions::EmbeddedPrecondition
- Defined in:
- lib/granite/action/preconditions/embedded_precondition.rb
Overview
Checks related business actions for precondition errors and adds them to current action.
memoize def child_action
...
end
precondition embedded: :child_action
memoize def child_action
...
end
memoize def child_actions
...
end
precondition embedded: [:child_action, :child_actions]
Method Summary
Methods inherited from BasePrecondition
Constructor Details
This class inherits a constructor from Granite::Action::Preconditions::BasePrecondition