Skip to content
New issue

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

Using mongoid's connection doesn't work #3

Open
mrkamel opened this issue Dec 27, 2013 · 2 comments
Open

Using mongoid's connection doesn't work #3

mrkamel opened this issue Dec 27, 2013 · 2 comments

Comments

@mrkamel
Copy link

mrkamel commented Dec 27, 2013

Auto-configuration via mongoid doesn't work.

I'm using

  • mongoid (3.1.6)
  • mongo_sequence (1.0.1)

When i try

irb> MongoSequence[:invoices].next
NoMethodError: undefined method `database' for Mongoid:Module
...
@joealba
Copy link
Collaborator

joealba commented Dec 28, 2013

mongo_sequence 1.0.1 does not support Mongoid 3. I'll put some time into it this weekend and see what I can do. Otherwise, pull requests are encouraged.

@mrkamel
Copy link
Author

mrkamel commented Dec 28, 2013

Hi, ok thx, just tell me know if don't find the time to fix it this weekend.
I will then dig into it next week and try to provide a pull request.

Since mongoid is using moped now, we can imho only read out the the moped connection settings of mongoid to create a Mongo::Connection ourselves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants