Skip to content

Commit

Permalink
fix: search association field by type and id
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Bob committed Sep 10, 2024
1 parent b87693c commit bec473e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/dummy/app/avo/resources/store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ def fields
field :location, as: :has_one
end

field :patrons, as: :tags do#, hide_on: [:show, :forms] do
record.patrons.map(&:name)
end

field :patrons,
as: :has_many,
through: :patronships,
Expand Down

0 comments on commit bec473e

Please sign in to comment.