[Bug Report] Allow default attributes to propagate to sibling/child interactors
aka-momo opened this issue · 0 comments
aka-momo commented
Current Behavior
After defining a default value for context attributes, like:
attribute :foo, default: "Foo"
context.foo
returns nil
during perform of sibling or child interactors
Expected Behavior
context.foo
returns "Foo"
during perform of sibling or child interactors
Steps to Reproduce
- Create a simple organizer with default attributes in context
- Create Simple Child interactors
- Do not set the default attributes during calling the perform method
- Try accessing the default attributes inside the child interactors
Repeat same steps for sibling interactors.