You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This failure happens after all the models have been persisted and correctly associated. The association of the active record models works as expected, but the validation doesn't account for the as: option that is provided in the resource relationship.
I'm happy to take a pass at putting together a pull request, but I wanted to confirm that my read of this issue is correct and that this functionality isn't intended.
Thanks!
The text was updated successfully, but these errors were encountered:
I've set up a failing spec scenario on this branch here.
When given a relationship and resource setup like this:
This payload will fail when sideposting personal documents through the EmployeeResource with the error "No method 'personal_documents' on employee"
This failure happens after all the models have been persisted and correctly associated. The association of the active record models works as expected, but the validation doesn't account for the
as:
option that is provided in the resource relationship.This happens here
I'm happy to take a pass at putting together a pull request, but I wanted to confirm that my read of this issue is correct and that this functionality isn't intended.
Thanks!
The text was updated successfully, but these errors were encountered: