enhance mongoid compatibility
Update for rails4