Undefined method `where' for Mongoid::Userstamp::User:Module
Opened this issue · 1 comments
dfabreguette commented
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 commented
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.