class Animal
include MongoMapper::Document
end
class Dog < Animal
end
class Cat < Animal
end
5.times { Dog.create }
4.times { Cat.create }
>> Dog.count
=> 9
>> Cat.count
=> 9
shouldn't those counts reflect the counts of the actual type of
object, not the count of the base object?
key :_type, String
on my Animal model. That seems to work fine now.