update rails and mongoid