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
Yes, there are named scopes es exposed like: Post.pendings for that, if you need to use the where clause, you can do something like
Post.where(status_cd: Post.status[:pending])
However we are planning a with_enum method or something similar, where it's possible to write with_enum(status: :pending) directly, see the thread in #95.
Using mongoid I can't find objects with via enums.
The text was updated successfully, but these errors were encountered: