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

Support for mongoid (MongoDB) #2

Open
ndbroadbent opened this issue Jan 3, 2018 · 3 comments
Open

Support for mongoid (MongoDB) #2

ndbroadbent opened this issue Jan 3, 2018 · 3 comments

Comments

@ndbroadbent
Copy link
Contributor

ndbroadbent commented Jan 3, 2018

I just saw that the generators and migrations are for ActiveRecord. My client is using MongoDB, so I'm going to have to add support for the mongoid gem.

Fortunately you can just post data and the MongoDB collection is implicitly created, so migrations aren't necessary.

What do you think about using the orm_adapter gem to support multiple ORMs? The gem could have different models for each ORM, and have some shared code that uses the orm_adapter API.

In the meantime I might just fork and rename to rails-letsencrypt-mongoid. But let me know if you would like to collaborate on support for multiple ORMs.

@elct9620
Copy link
Owner

elct9620 commented Feb 4, 2018

That sounds good, I will plan to add it. But if you can not waiting for me to add it, you can send a PR.

@ndbroadbent
Copy link
Contributor Author

Hi, I've actually forked this library for mongoid support: https://github.com/foliohd/rails-letsencrypt-mongoid

The models changed quite a bit, so maybe a fork is the best way to go.

@elct9620
Copy link
Owner

Agree with it, add mongoid to this gem seems cannot keep the code clean now.

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