call Moped::BSON::ObjectId.from_string on the ID only if using Mongoid 3 or higher