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

Support annotation implicitly-returns-nil #33

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

ksss
Copy link
Owner

@ksss ksss commented Jan 31, 2025

Previously, associations defined with belongs_to considered the possibility of returning nil, but this was not very convenient.

In most cases, the model can be retrieved, and nil is returned only in rare cases. In such situations, the %a{implicitly-returns-nil} annotation is the best choice.

@ksss ksss changed the title Support annotation implicitly_returns_nil Support annotation implicitly-returns-nil Jan 31, 2025
@ksss ksss merged commit 095dab2 into main Jan 31, 2025
13 checks passed
@ksss ksss deleted the belongs_to-implicitly_returns_nil branch January 31, 2025 08:43
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.

1 participant