avo-hq / avo

Build Ruby on Rails apps 10x faster
https://avohq.io
Other
1.5k stars 238 forks source link

Access parent record on child actions #3165

Open Paul-Bob opened 1 month ago

Paul-Bob commented 1 month ago

Context

2024-08-21_12-50

When running an action on an association there is no straightforward way to access the parent record.

Workaround

Passing parent record as argument as explained in detail here https://github.com/avo-hq/avo/discussions/3159#discussioncomment-10405595

Demo commit: https://github.com/avo-hq/avo/commit/b55d4e49e7e667ceb59e561222f12e5fc1eb117f

Approach

github-actions[bot] commented 3 weeks ago

This issue has been marked as stale because there was no activity for the past 15 days.