Skip to content

Add lazy support for scopes with different foreign key names#22

Merged
pyromaniac merged 1 commit intomongoid:masterfrom
dsci:master
Mar 18, 2014
Merged

Add lazy support for scopes with different foreign key names#22
pyromaniac merged 1 commit intomongoid:masterfrom
dsci:master

Conversation

@dsci
Copy link
Copy Markdown
Contributor

@dsci dsci commented Mar 18, 2014

I slightly adjust the scope assignment if a belongs_to relationship is used that differs from the naming convention. I think it's nicer to use the relationship name instead of the key field name.

pyromaniac added a commit that referenced this pull request Mar 18, 2014
Add lazy support for scopes with different foreign key names
@pyromaniac pyromaniac merged commit 5f0efc7 into mongoid:master Mar 18, 2014
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.

2 participants