Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Superclass associations fix #23 #24

Merged

Conversation

JaciBrunning
Copy link
Contributor

This fixes #23 by looking up foreign_type with all applicable ancestor classes (including the model class) that respond to the association. This includes a single test case via an addition to the animal test model that creates an animal <-> animal relationship a la predator/prey.

@westonganger
Copy link
Owner

Merged. Thanks for your contribution!

@westonganger westonganger merged commit 17542f4 into westonganger:master Jan 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

has_many associations defined on intermediate STI classes fail to reify
2 participants