We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
.find_or_initialize_by(enum: 'enum_value')
I reached a problem when doing
Model.find_or_initialize_by(enum_field: 'value')
it's not matching it. I saw that if I use _enum_field instead of enum_field it's working as expected.
_enum_field
enum_field
My environment is: ruby (2.1.6) rails (3.2.15) mongoid (3.1.6) mongoid-enum (0.1.1)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I reached a problem when doing
it's not matching it.
I saw that if I use
_enum_field
instead ofenum_field
it's working as expected.My environment is:
ruby (2.1.6)
rails (3.2.15)
mongoid (3.1.6)
mongoid-enum (0.1.1)
The text was updated successfully, but these errors were encountered: