Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-1731

problem when creating indexes

    • Type: Icon: Task Task
    • Resolution: Done
    • 2.4.5
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            digitalplaywright digitalplaywright
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: