jugyo/sunspot_mongoid — Issue #18: load_all raises document not found exception
Author: heaven
Created: 2012-02-24 16:44:38+00:00
State: open

This method raises an error if some of id's not found. AR adapter doesn't raise that error.

````ruby
def load_all(ids)
@clazz.where(:_id.in => ids.map { |id| BSON::ObjectId.from_string(id) })
end
````