mongoid/mongoid — Issue #1730: problem when creating indexes
Author: digitalplaywright
Created: 2012-02-19 03:46:05+00:00
State: open

I've organized a model and it's embedded models in sub-folders of app/models to better separate concepts. For instance, I put a model SomeModel into:
app/models/example/some_model.rb

When I run
rake db:mongoid:create_indexes
I get
Expected /..../app/models/example/some_model.rb to define Example::SomeModel

I don't believe this behavior is general convention.

Thanks.