Open zdraganov opened 9 years ago
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)
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)