mongoid rails 4.1 devise session serialization issue fix