Skip to content

Commit 5fad09b

Browse files
authored
Merge pull request #6200 from rubygems/fix-organization-invite-admin
Fix polymorphic errors when viewing organization invites
2 parents d05f69e + 3ff8ec1 commit 5fad09b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/avo/resources/organization_invite.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ class Avo::Resources::OrganizationInvite < Avo::BaseResource
44

55
def fields
66
field :id, as: :id
7-
field :invitable, as: :belongs_to
7+
field :invitable_type, as: :text
8+
field :invitable, as: :belongs_to, polymorphic_as: :invitable
89
field :user, as: :belongs_to
910
field :role, as: :select, enum: OrganizationInvite.roles
1011
end

0 commit comments

Comments
 (0)