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

Change in criteria prefixing #32

Open
p3drosola opened this issue Feb 12, 2016 · 1 comment
Open

Change in criteria prefixing #32

p3drosola opened this issue Feb 12, 2016 · 1 comment

Comments

@p3drosola
Copy link

I've just updated to mongoid5 and mongoid-enum 0.4, and noticed a change in how criteria is built.

In emongoid-enum 0.2 Model.where(enum_name: :value) would translate to the mongo query for {_enum_name: "value"} that is, it added the field prefix to the query. That doesn't seem to be working anymore.

Is this the expected behaviour?

@p3drosola p3drosola changed the title Change in queries Change in criteria prefixing Feb 12, 2016
@p3drosola
Copy link
Author

I also noticed that enum_changed? is now _enum_changed? is this on purpose or a regression?

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

No branches or pull requests

1 participant