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

Compatibility with Mongoid 5 #27

Open
Mohakjuneja opened this issue Jan 31, 2016 · 11 comments
Open

Compatibility with Mongoid 5 #27

Mohakjuneja opened this issue Jan 31, 2016 · 11 comments

Comments

@Mohakjuneja
Copy link
Contributor

Hi there! I'm using mongoid 5. The gem is not compatible with it. Is anyone actively maintaining this gem or should we look for alternatives?

@johnnyshields
Copy link
Collaborator

I'm using this gem, if you can raise a PR for Mongoid 5 compatibility would be great.

@Mohakjuneja
Copy link
Contributor Author

@johnnyshields I'm sorry but I have never raised a PR. If you could guide me, I'd be glad to do it. Thanks

@johnnyshields
Copy link
Collaborator

@Mohakjuneja there are many guides online for this. Please google.

@Mohakjuneja
Copy link
Contributor Author

I've forked the repository but I do not know what changes in the code would solve the compatibility issue. Which file would you suggest me to start? Thank you for your patience.

@tboerger
Copy link

tboerger commented Feb 1, 2016

A start should be to extend https://github.com/tbpro/mongoid_userstamp/blob/master/Gemfile#L5-L12 and https://github.com/tbpro/mongoid_userstamp/blob/master/.travis.yml#L13-L14 to extend the tests to mongoid 5. I have not followed mongoid for a long time as I'm not using mongo in any project anymore, so I don't know what made it incompatible.

@tboerger
Copy link

tboerger commented Feb 1, 2016

MONGOID_VERSION="~> 5.0" bundle exec spec should run the specs with your mongoid version.

@Mohakjuneja
Copy link
Contributor Author

So for some reason the created_by_id and updated_by_id attributes are still not being saved along the object after updating the travis.yml and Gemfile.
Can you take a look at this and see what could be the problem?
https://docs.mongodb.org/ecosystem/tutorial/mongoid-installation/

@johnnyshields
Copy link
Collaborator

@Mohakjuneja you're going to have to debug this yourself. Please write a test case that reproduces the issue.

@sahilchopra
Copy link

+1
Any progress with this

@Mohakjuneja
Copy link
Contributor Author

@sahilchopra None at my end. I'll try and publish a test case this week

@sahilchopra
Copy link

Thank you!

Right now this Gem is not working with mongoid 5.

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

4 participants