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

Undefined method `where' for Mongoid::Userstamp::User:Module #26

Open
dfabreguette opened this issue Jul 9, 2015 · 1 comment
Open

Comments

@dfabreguette
Copy link

After adding the gem, everytime I call my user model

User.where(...

I get the this namespace error. Quick to fix is to call

::User.where(...

But how can we solve that globally ?

@atherm
Copy link

atherm commented Aug 18, 2016

I have fixed this issue. Take a look https://github.com/atherplero/mongoid_userstamp
You just have to add UserstampUser instead of User in your user model.

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