fixing AR
fixing mongoid