fix mongoid rails4 dependency