I switched to mongoid-autoinc due to an upgrade to mongoid 5.0.2 (was using proton/mongoid_auto_increment) before. Using this issue to thank everyone involved for providing an alternative that is well supported by newer versions of Mongoid 👍
Context
It's a rails 4.2.0 application. Here's what I specified in the Gemfile:
Hi,
I switched to
mongoid-autoinc
due to an upgrade tomongoid 5.0.2
(was usingproton/mongoid_auto_increment
) before. Using this issue to thank everyone involved for providing an alternative that is well supported by newer versions of Mongoid 👍Context
It's a
rails 4.2.0
application. Here's what I specified in the Gemfile:The Gemfile.lock file after a bundle install has the following versions locked:
Excerpt from the model:
Error
The error I'm getting in the Rails logs is the following:
NameError (uninitialized constant Mongoid::Autoinc):
I am starting the server with
bundle exec rails server
and I didbundle install
so I would expectMongoid::Autoinc
to be defined.