You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
p3drosola
changed the title
Change in queries
Change in criteria prefixing
Feb 12, 2016
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?
The text was updated successfully, but these errors were encountered: