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

Don't find belongs_to target when the foreign_key is NULL. Fixes #2828 #2869

Closed
wants to merge 1 commit into from
Closed

Don't find belongs_to target when the foreign_key is NULL. Fixes #2828 #2869

wants to merge 1 commit into from

Conversation

georg
Copy link
Contributor

@georg georg commented Sep 5, 2011

Rails 2.3.11 and Rails 3.0 don't query the database for belongs_to associations when the foreign key is NULL.

It looks like this regression has been introduced by a9bed98.

This patch adds a test case and fixes the behavior.

@jonleighton
Copy link
Member

Looks like this has been merged (78c896c), so closing.

@jonleighton jonleighton closed this Sep 6, 2011
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.

None yet

2 participants