-
Notifications
You must be signed in to change notification settings - Fork 64
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
Compile error for optional association preloads #922
Comments
This is correct, the |
This bug was introduced in 285a902 which is really new and I think only affects preloading in the new way (with an existing record). |
I got this error while testing Shield with the master branch of Avram. It's an existing code, calling
That's correct. The said line should probably check if the association is nil and call the appropriate method. |
Ah! That explains it. Yeah, I haven't tested the main branch stuff 😅 Good find. |
I'm getting a compile error when preloading optional associations. It seems to originate from here:
avram/src/avram/associations/belongs_to.cr
Line 64 in 6d5357e
It seems the
#eq
method does not accept nilable arguments.The text was updated successfully, but these errors were encountered: