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

Ensure that index matches scope [Fixes #33] #34

Merged
merged 1 commit into from
Oct 4, 2014

Conversation

joeyAghion
Copy link
Contributor

This prefixes the declared index with the scope (if defined), fixing #33.

Note that scopes defined as lambdas can't be easily indexed this way, so I chose to leave the default behavior (of indexing only position) in that case. In many cases, it may actually be preferable to disable the automatic index and declare another manually.

@dblock
Copy link
Contributor

dblock commented Oct 3, 2014

This is great, +1. I think this needs a CHANGELOG line, too.

@joeyAghion
Copy link
Contributor Author

Amended with a CHANGELOG line.

pyromaniac added a commit that referenced this pull request Oct 4, 2014
Ensure that index matches scope [Fixes #33]
@pyromaniac pyromaniac merged commit 972b0ab into mongoid:master Oct 4, 2014
@pyromaniac
Copy link
Collaborator

That is awesome, thanks. And I completely forgot about the changelog :) Have to review and renew it.

@dblock
Copy link
Contributor

dblock commented Dec 19, 2014

@pyromaniac Could you cut a release with this? This gem isn't going to see too many updates ...

@pyromaniac
Copy link
Collaborator

Done

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.

3 participants