# app/avo/resources/user.rb
class Avo::Resources::User < Avo::BaseResource
  def fields
    field :review,
      format_using: -> {
        # Fetch the review from the StorePatron join table
        record.patronships.find_by(store_id: params[:via_record_id])&.review
      }
  end
end
```

This will show the `review` field from the join table when viewing users from the context of a store.

## Editing Join Table Fields

To allow editing, you need to:

1. Add a writer for the field to the model (e.g., `attr_accessor :review` or a custom setter).
2. Use the `update_using` option to update the join record.

```ruby