huacnlee/mongoid_auto_increment_id — pull request #12 by junwchina (2014-06-04 06:34:13+00:00)
Title: Works on replicate set mongodb well

Change to execute the query on primary nodes. Since Mongoid::Sessions.default.command is just executing on read_preference nodes.