hlegius/sunspot_mongoid2 — pull request #2 by toppa (2013-07-31 20:22:42+00:00)
Title: support older versions of Mongo

Older versions of Mongo don't use Moped for IDs. This checks the Mongo version to determine which ID format to use. Ideally I'd prefer to check what's supported instead of a version number (duck typing...), but the Moped gem is independent of Mongo, so just checking if Moped is available isn't sufficient.