We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d05f69e + 3ff8ec1 commit 5fad09bCopy full SHA for 5fad09b
app/avo/resources/organization_invite.rb
@@ -4,7 +4,8 @@ class Avo::Resources::OrganizationInvite < Avo::BaseResource
4
5
def fields
6
field :id, as: :id
7
- field :invitable, as: :belongs_to
+ field :invitable_type, as: :text
8
+ field :invitable, as: :belongs_to, polymorphic_as: :invitable
9
field :user, as: :belongs_to
10
field :role, as: :select, enum: OrganizationInvite.roles
11
end
0 commit comments