-
Type:
New Feature
-
Resolution: Fixed
-
Priority:
Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
This code raises an InvalidStorageParent error.
class Animal include Mongoid::Document store_in collection: 'animals' end class Dog < Animal include Mongoid::Document store_in collection: 'dogs' #=> raises InvalidStorageParent end
Is there any reason we have this restriction? It would be very useful to subclass a document and make it stored in a different collection.