-
-
Notifications
You must be signed in to change notification settings - Fork 232
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
Fallback to resources class / link to child resource feature #1398
Fallback to resources class / link to child resource feature #1398
Conversation
Code Climate has analyzed commit f5248b3 and detected 0 issues on this pull request. View more on Code Climate. |
Hey @elassadi. Can you share an example where this bug occurs in the dummy app? |
I just prepared https://github.com/elassadi/avo/tree/demo/reference-to-base-class to show the case
|
OK! Got it! I see the issue and the fix now. Thank you! Can I ask you to add a spec for this so we can bullet proof it? |
I don't see any useful specs to cover a missing Model. |
I think it would be enough adding that I'll look into it and see if I can add one. |
Description
Link to child resources
A small bug.
if the parent resource is the same as the base class or if the child class is missing we fallback to the parent class.
We may as well raise an exception ?
Checklist:
Manual review steps
Manual reviewer: please leave a comment with output from the test if that's the case.