-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
-
None
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
If I don't put models and their embedded models into sub-directories of model it quickly takes unnecessary thinking to separate concepts.
Please let me know if you think the current behavior is convention and suggest a different practice if you know a better one.
Thanks.