Class: Granite::Action::Preconditions::EmbeddedPrecondition

Inherits:
BasePrecondition show all
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

#execute!, #initialize

Constructor Details

This class inherits a constructor from Granite::Action::Preconditions::BasePrecondition