Skip to content

Implement proper STI support in Rolify#599

Open
bopm wants to merge 1 commit intoRolifyCommunity:masterfrom
bopm:feature/proper-sti-support
Open

Implement proper STI support in Rolify#599
bopm wants to merge 1 commit intoRolifyCommunity:masterfrom
bopm:feature/proper-sti-support

Conversation

@bopm
Copy link
Copy Markdown

@bopm bopm commented Nov 28, 2024

Current approach to ActiveRecord STI is a bit misleading as in practice polymorphic association will always fallback to the base model.

This PR trying to address that by setting resource type accordingly from reflection.

@bopm
Copy link
Copy Markdown
Author

bopm commented Nov 28, 2024

And then I noticed #517, dunno what to do now :)

@bopm bopm force-pushed the feature/proper-sti-support branch from 995bad0 to 7e42eae Compare November 28, 2024 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant