avo icon indicating copy to clipboard operation
avo copied to clipboard

Implement `association` option for association fields.

Open Paul-Bob opened this issue 11 months ago • 1 comments

Feature

Implement association option that allow specifying the association target for an association filed.

with_options as: :has_many do
  field :users, scope: -> { query.non_admins }
  field :admins, association: :users, scope: -> { query.admins }
end

Additional context

https://github.com/avo-hq/avo/issues/2513

Paul-Bob avatar Mar 05 '24 07:03 Paul-Bob

We want that feature too =)

FLX-0x00 avatar Mar 06 '24 16:03 FLX-0x00

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

github-actions[bot] avatar Mar 22 '24 01:03 github-actions[bot]

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

github-actions[bot] avatar Apr 07 '24 01:04 github-actions[bot]

We decided to implement this option to all fields and rename it to for_attribute

Paul-Bob avatar Apr 14 '24 08:04 Paul-Bob