Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Error when destroying a record with has_one association #17

Merged
merged 1 commit into from Feb 2, 2012

Conversation

Projects
None yet
2 participants
Contributor

zonecheung commented Feb 2, 2012

I got this error when trying to destroy the record:

undefined local variable or method `record' for #ActiveRecord::Associations::HasOneAssociation:0x00000008b51b18

Looks like there's a typo to load the target. Works fine after the fix.

Thanks for this great gem!

@orslumen orslumen added a commit that referenced this pull request Feb 2, 2012

@orslumen orslumen Merge pull request #17 from zonecheung/master
Error when destroying a record with has_one association
d10f247

@orslumen orslumen merged commit d10f247 into orslumen:master Feb 2, 2012

Owner

orslumen commented Feb 2, 2012

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment