Skip to content

fixing bug with associations#574

Merged
jwoertink merged 1 commit intomasterfrom
bugs/571
Dec 25, 2020
Merged

fixing bug with associations#574
jwoertink merged 1 commit intomasterfrom
bugs/571

Conversation

@jwoertink
Copy link
Member

Fixes #571

Turns out this affected all associations. We never caught this because the tests only ever setup a single record. Since we were calling type, the associations never matched because Tag would never equal :belongs_to.

Copy link
Member

@matthewmcgarvey matthewmcgarvey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch 👍

@jwoertink jwoertink merged commit c120c64 into master Dec 25, 2020
@jwoertink jwoertink deleted the bugs/571 branch December 25, 2020 20:21
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.

Has_many association too greedy

2 participants